feat(update): get rid of updateCustomPackage func

This commit is contained in:
matt1432 2025-02-16 20:40:18 -05:00
parent d5db4c4e88
commit 018a5aee9e
4 changed files with 37 additions and 33 deletions
packages/some-sass-language-server

View file

@ -3,6 +3,7 @@
lib,
buildNpmPackage,
makeWrapper,
nix-update-script,
writeShellApplication,
# update script deps
nodejs_latest,
@ -32,15 +33,23 @@ in
npmDepsHash = "sha256-BRo71A07BhrioiBFisCR01OrVFTIagVTIClZ2Tpjidk=";
passthru.update = writeShellApplication {
name = "update";
runtimeInputs = [
nodejs_latest
prefetch-npm-deps
jq
];
text = import ./update.nix;
};
passthru.updateScript = let
script = writeShellApplication {
name = "update";
runtimeInputs = [
nodejs_latest
prefetch-npm-deps
jq
];
text = import ./update.nix;
};
in
nix-update-script {
extraArgs = [
"--version=skip"
"; ${script}"
];
};
meta = {
mainProgram = pname;