16 lines
420 B
Nix
16 lines
420 B
Nix
{stdenv, getopt}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nixproc-launchd-tools";
|
|
buildCommand = ''
|
|
mkdir -p $out/bin
|
|
|
|
sed -e "s|/bin/bash|$SHELL|" \
|
|
-e "s|@getopt@|${getopt}/bin/getopt|" \
|
|
-e "s|@commonchecks@|${../commonchecks}|" \
|
|
-e "s|@readlink@|$(type -p readlink)|" \
|
|
${./nixproc-launchd-switch.in} > $out/bin/nixproc-launchd-switch
|
|
chmod +x $out/bin/nixproc-launchd-switch
|
|
'';
|
|
}
|