This commit is contained in:
2020-12-27 20:19:11 +01:00
parent 45dd09183d
commit e860157ba3
2 changed files with 30 additions and 2 deletions

View File

@@ -22,8 +22,15 @@ let
buildInputs = [ gmp ];
};
};
client = pkgs.writeShellScriptBin "brownpaper" ''
PATH=${pkgs.bash}/bin/:${pkgs.gnupg}/bin/:${pkgs.curl}/bin/:$PATH ${./bp.sh} "$@"
client = with pkgs; runCommandLocal "brownpaper" {
script = ./bp.sh;
nativeBuildInputs = [ makeWrapper ];
} ''
makeWrapper $script $out/bin/brownpaper \
--prefix PATH : ${lib.makeBinPath [ bash curl gnupg ]}
'';
# client = pkgs.writeShellScriptBin "brownpaper" ''
# PATH=${pkgs.bash}/bin/:${pkgs.gnupg}/bin/:${pkgs.curl}/bin/:$PATH ${./bp.sh} "$@"
# '';
in
{ server = callPackage (crate2nix_tools.generatedCargoNix { inherit name; src = filteredSrc; }) { inherit pkgs; defaultCrateOverrides = overrides; }; inherit client; }