nysh/nix/package.nix
2024-08-23 01:30:33 +02:00

19 lines
308 B
Nix

{ stdenv, quickshell, ... }:
stdenv.mkDerivation rec {
name = "nysh";
unpackPhase = ":";
buildPhase = ''
cat > ${name} <<EOF
#! $SHELL
${quickshell}/bin/quickshell -p ${../src}
EOF
chmod +x ${name}
'';
installPhase = ''
mkdir -p $out/bin
cp ${name} $out/bin/
'';
}