default.nix 1.01 KB
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
{
  argopkgs-src ? (builtins.fetchGit https://xgitlab.cels.anl.gov/argo/argopkgs.git) ,
  nrm-src ? (builtins.fetchGit https://xgitlab.cels.anl.gov/argo/nrm.git)
}:
let
  argopkgs =  import argopkgs-src {};

  nrm = argopkgs.nodelevel.nrm.overrideAttrs (old: { src =  nrm-src; });
  containers = argopkgs.nodelevel.containers;
  amg = argopkgs.applications.nrm.amg;

  hpkgs = (p: with p;[
    turtle optparse-generic interpolatedstring-perl6 managed
  ]);

  hpkgsPrecommit = (p: with p;[
    turtle optparse-generic interpolatedstring-perl6 managed
    (argopkgs.haskell.lib.doJailbreak panpipe)
  ]);
in
{
  test1 = argopkgs.stdenv.mkDerivation {
      src=./.;
      name="nrm-experimental-dev-environment";
      buildInputs = [
        containers
        amg
        nrm
        (argopkgs.haskellPackages.ghcWithPackages hpkgs)
      ];
  };
  pre-commit = argopkgs.stdenv.mkDerivation {
    name="pre-commit";
    src = ./.;
    buildInputs = [
      (argopkgs.haskellPackages.ghcWitPackages hpkgsPrecommit)
    ];
  };
}