default.nix 2 KB
Newer Older
Valentin Reis's avatar
.  
Valentin Reis committed
1 2 3 4 5 6
{
  pkgs ? import ../pin.nix ../nixpkgs-18.03.json,
  pins ? import ./pins.nix {inherit (pkgs) stdenv fetchgit fetchgitPrivate;}
}:
let
  callPackage = pkgs.lib.callPackageWith pkgs;
Valentin Reis's avatar
Valentin Reis committed
7
  pythonPackages = pkgs.python27Packages;
Valentin Reis's avatar
.  
Valentin Reis committed
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
in rec {

    nrm-containers = callPackage ./containers {
      inherit pythonPackages;
      src = pins.containers;
    };

    nrm = callPackage ./nrm {
      inherit pythonPackages nrm-containers;
      src = pins.nrm;
    };
}
    # 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;