dot_testing/builds/pash.nix

28 lines
504 B
Nix
Raw Normal View History

2023-07-09 17:21:27 -05:00
{ stdenv
, lib
, bash
2023-09-23 03:42:22 -05:00
, gnupg
2023-07-09 17:21:27 -05:00
, makeWrapper
, fetchgit
}:
stdenv.mkDerivation rec {
pname = "pash";
version = "1.00";
src = fetchgit {
url = "https://git.beepboop.systems/rndusr/pash";
sha256 = "sha256-0L3N7F4BwVdu4rR5xpUEIHcX/x64Gni8JTUki5kGH24=";
};
2023-09-23 03:42:22 -05:00
nativeBuildInputs = [ makeWrapper gnupg ];
2023-07-09 17:21:27 -05:00
installPhase = ''
mkdir -p $out/bin
cp $src/pash $out/bin/pash
wrapProgram $out/bin/pash --prefix PATH : ${lib.makeBinPath [ bash ]}
'';
phases = [ "installPhase" ];
}