From de723476272beeaebb44d82ca33699d317301783 Mon Sep 17 00:00:00 2001 From: papojari Date: Wed, 27 Apr 2022 19:30:01 +0200 Subject: kabeljau: 1.1.0 → 1.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sandro --- pkgs/games/kabeljau/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'pkgs/games') diff --git a/pkgs/games/kabeljau/default.nix b/pkgs/games/kabeljau/default.nix index e4f77df3dfe..b277966f31d 100644 --- a/pkgs/games/kabeljau/default.nix +++ b/pkgs/games/kabeljau/default.nix @@ -1,27 +1,29 @@ -{ stdenvNoCC, lib, fetchFromGitea, bash, dialog, makeWrapper }: +{ stdenvNoCC, lib, fetchFromGitea, just, inkscape, makeWrapper, bash, dialog }: stdenvNoCC.mkDerivation rec { pname = "kabeljau"; - version = "1.0.1"; + version = "1.2.0"; src = fetchFromGitea { domain = "codeberg.org"; owner = "papojari"; repo = "kabeljau"; rev = "v${version}"; - sha256 = "sha256-LOvr5fgSUTXnYhbVmynCCjo0W098jKWQnFULtIprE3M="; + sha256 = "sha256-RedVItgfr6vgqXHA3bOiHXDpfGuHI+sX4jCHL9G5jYk="; }; - nativeBuildInputs = [ makeWrapper ]; + # Inkscape is needed in a just recipe where it is used to export the SVG icon to several different sized PNGs. + nativeBuildInputs = [ just inkscape makeWrapper ]; postPatch = '' patchShebangs --host ${pname} + substituteInPlace ./justfile \ + --replace " /bin" " $out/bin" \ + --replace " /usr" " $out" ''; - installPhase = '' runHook preInstall - mkdir -p $out/bin - cp ${pname}.sh $out/bin/${pname} + just install wrapProgram $out/bin/${pname} --suffix PATH : ${ lib.makeBinPath [ dialog ] } -- cgit 1.4.1