default.nix 2.09 KB
Newer Older
Valentin Reis's avatar
.  
Valentin Reis committed
1
{
Valentin Reis's avatar
Valentin Reis committed
2 3 4
  pkgs         ? import ../pin.nix ../nixpkgs-18.03.json,
  datamovepkgs ? import ../pin.nix ../datamove.json,
  packagepins ? import ./pins.nix {inherit (pkgs) stdenv fetchgit fetchgitPrivate;}
Valentin Reis's avatar
.  
Valentin Reis committed
5 6 7
}:
let
  callPackage = pkgs.lib.callPackageWith pkgs;
Valentin Reis's avatar
Valentin Reis committed
8
  pythonPackages = pkgs.python27Packages;
Valentin Reis's avatar
.  
Valentin Reis committed
9 10 11 12
in rec {

    nrm-containers = callPackage ./containers {
      inherit pythonPackages;
Valentin Reis's avatar
Valentin Reis committed
13
      src = packagepins.containers.nix;
Valentin Reis's avatar
.  
Valentin Reis committed
14 15 16 17
    };

    nrm = callPackage ./nrm {
      inherit pythonPackages nrm-containers;
Valentin Reis's avatar
Valentin Reis committed
18
      src = packagepins.nrm.bandit;
Valentin Reis's avatar
.  
Valentin Reis committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    };
}
    # not buildable unless results are present(uses sudo: launch expes in nix-shell)
    #appli-enforce = callPackage src/experiments/default.nix
    #{ inherit nrm nrm-containers zymake app target;
      #application= app;
      #samplesize = samplesize-enforce;
      #result_type = "enforce";};

    ## not buildable unless results are present(uses sudo: launch expes in nix-shell)
    #appli-bandit = callPackage src/experiments/default.nix
    #{ inherit nrm nrm-containers zymake app target;
      #application= app;
      #samplesize = samplesize-bandit;
      #result_type = "bandit";};

    #app-analysis-enforce = callPackage src/analysis/default.nix
    #{ inherit zymake;
      #input-enforce=appli-enforce;
      #analysis_type = "enforce";
      #target = "dummy";
    #};

    #app-analysis-bandit = callPackage src/analysis/default.nix
    #{ inherit zymake;
      #analysis_type = "bandit";
      #input-bandit = appli-bandit;
      #input-enforce = appli-enforce;
      #target = "dummy";
    #};

    #dev = let
      #conf = pkgs.writeText "hound.conf" ''
        #{ "max-concurrent-indexers" : 2,
          #"dbpath" : "${builtins.toPath ./.}/hound",
          #"repos" : {
            #"nrm" : { "url" : "file://${builtins.toPath ./nrm}" },
            #"containers" : { "url" : "file://${builtins.toPath ./containers}" } } }
      #'';
    #in pkgs.stdenv.mkDerivation {
      ##not buildable
      #name="nrm-experimental-environment";
      #buildInputs = [nrm pkgs.hound];
      #shellHook = "${pkgs.hound}/bin/houndd -conf ${conf} &";
    #};
    #inherit pkgs;