nix package + small tweaks for release

This commit is contained in:
outfoxxed 2024-11-09 01:09:07 -08:00
parent 4546105f21
commit 48b954c410
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
8 changed files with 121 additions and 19 deletions

View file

@ -6,6 +6,7 @@
yarn-berry,
nodejs_22,
cacert,
quickshell-types ? null,
}: stdenv.mkDerivation (final: let
nodeModules = stdenv.mkDerivation {
pname = "${final.pname}-node_modules";
@ -50,7 +51,7 @@
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "rKoDjvG5t+aQRrzAz0eTifPtL3zmWAu/emxXWd1ocxM=";
outputHash = "tZ4xuA7uNnMIEpSUmQ5TAWPdvRGFJWIgWyBa1QFFWWU=";
};
in {
pname = "quickshell-web";
@ -72,9 +73,12 @@ in {
EOF
cp -r ${nodeModules} node_modules
chmod +rw -R node_modules
'';
buildPhase = ''
${if quickshell-types != null then "export SECRET_MODULES_PATH=${quickshell-types}" else ""}
echo SECRET_MODULES_PATH: $SECRET_MODULES_PATH
HOME=$(pwd)/garbage-tooling yarn build
'';