Skip to content

Commit

Permalink
shadershark: simplify update script
Browse files Browse the repository at this point in the history
Signed-off-by: lucasew <[email protected]>
  • Loading branch information
lucasew committed Nov 7, 2024
1 parent b4cca74 commit 63c0956
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
8 changes: 7 additions & 1 deletion pkgs/by-name/sh/shadershark/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
, imagemagick
, makeWrapper
, installShellFiles
, genericUpdater
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -50,7 +51,12 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';

passthru.updateScript = [ ./update.sh finalAttrs.src.url ];
passthru.updateScript = genericUpdater {
rev-prefix = "v";
versionLister = ''
curl https://hg.globalcode.info/graphics/shader-shark/tags | grep 'class="list"' | sed 's;.*\/rev/\([^"]*\)[^$]*;\1;'
# ignore args'';
};

meta = with lib; {
mainProgram = "shader-shark";
Expand Down
14 changes: 0 additions & 14 deletions pkgs/by-name/sh/shadershark/update.sh

This file was deleted.

0 comments on commit 63c0956

Please sign in to comment.