Skip to content

Commit

Permalink
kabeljau: 1.2.0 -> 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
auroraanna committed Sep 27, 2024
1 parent 3fe7fe4 commit 8de6052
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkgs/games/kabeljau/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
{ stdenvNoCC, lib, fetchFromGitea, just, inkscape, makeWrapper, bash, dialog }:
{ stdenvNoCC, lib, fetchFromGitea, just, imagemagick, makeWrapper, bash, dialog }:

stdenvNoCC.mkDerivation rec {
pname = "kabeljau";
version = "1.2.0";
version = "2.1.0";

src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = "kabeljau";
rev = "v${version}";
hash = "sha256-RedVItgfr6vgqXHA3bOiHXDpfGuHI+sX4jCHL9G5jYk=";
hash = "sha256-yZHDnzNTdDXHR+Pi3NODqw4npzuthHgOJYnTmIvGyUE=";
};

# 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 ];
nativeBuildInputs = [ just imagemagick makeWrapper ];
postPatch = ''
patchShebangs --host ${pname}
substituteInPlace ./justfile \
--replace " /bin" " $out/bin" \
--replace " /usr" " $out"
'';
installPhase = ''
runHook preInstall
just install
just --set bin-path $out/bin --set share-path $out/share linux-install
wrapProgram $out/bin/${pname} --suffix PATH : ${
lib.makeBinPath [ dialog ]
}
Expand Down

0 comments on commit 8de6052

Please sign in to comment.