chore: simplify nix package
This commit is contained in:
parent
02a72fb5d2
commit
6407497220
1 changed files with 12 additions and 10 deletions
|
@ -1,19 +1,21 @@
|
||||||
{ stdenv, quickshell, ... }:
|
{
|
||||||
stdenv.mkDerivation rec {
|
stdenv,
|
||||||
|
quickshell,
|
||||||
|
makeWrapper,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
name = "nysh";
|
name = "nysh";
|
||||||
|
|
||||||
unpackPhase = ":";
|
unpackPhase = ":";
|
||||||
|
|
||||||
buildPhase = ''
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
cat > ${name} <<EOF
|
|
||||||
#! $SHELL
|
|
||||||
${quickshell}/bin/quickshell -p ${./..}/src
|
|
||||||
EOF
|
|
||||||
chmod +x ${name}
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp ${name} $out/bin/
|
cp ${quickshell}/bin/quickshell $out/bin
|
||||||
|
|
||||||
|
wrapProgram $out/bin/quickshell \
|
||||||
|
--add-flags "-p ${./..}/src"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue