22 lines
424 B
Nix
22 lines
424 B
Nix
|
{
|
||
|
fetchFromGitHub,
|
||
|
stdenv,
|
||
|
}: stdenv.mkDerivation rec {
|
||
|
|
||
|
pname = "cryptic-net-wait-for";
|
||
|
version = "2.2.2";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "eficode";
|
||
|
repo = "wait-for";
|
||
|
rev = "v${version}";
|
||
|
sha256 = "sha256-qYeBOF63/+8bbFHiR6HT2mMQDFKCVkLNzIGLeEZJ4sk=";
|
||
|
};
|
||
|
|
||
|
builder = builtins.toFile "builder.sh" ''
|
||
|
source $stdenv/setup
|
||
|
mkdir -p "$out"/bin
|
||
|
cp "$src"/wait-for "$out"/bin/
|
||
|
'';
|
||
|
}
|