/ default.nix
default.nix
 1  {
 2    pkgs ?  (import <nixpkgs> {}),
 3    version ? (import ./readCommit.nix {}),
 4    ...
 5  }:
 6  
 7  let
 8    my-python = pkgs.python3;
 9    pythonAndPackages = my-python.withPackages (p: with p; [
10      requests
11    ]);
12  in
13  
14  pkgs.stdenv.mkDerivation {
15    inherit version;
16    pname = "loveisgrief-bash";
17    buildInputs = with pkgs; [
18      bash
19      coreutils
20      findutils
21      gcc
22      gnugrep
23      gnused
24      pythonAndPackages
25    ];
26  
27    installPhase = ''bash ./nix_builder.sh'';
28    src = builtins.path { path = ./. ; name = "loveisgrief-bash"; };
29  }