kabeljau: 1.2.0 -> 2.1.0 (#344964)
This commit is contained in:
commit
0f2b52d628
@ -1,29 +1,26 @@
|
|||||||
{ stdenvNoCC, lib, fetchFromGitea, just, inkscape, makeWrapper, bash, dialog }:
|
{ stdenvNoCC, lib, fetchFromGitea, just, imagemagick, makeWrapper, bash, dialog }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "kabeljau";
|
pname = "kabeljau";
|
||||||
version = "1.2.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "codeberg.org";
|
domain = "codeberg.org";
|
||||||
owner = "annaaurora";
|
owner = "annaaurora";
|
||||||
repo = "kabeljau";
|
repo = "kabeljau";
|
||||||
rev = "v${version}";
|
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.
|
# 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 = ''
|
postPatch = ''
|
||||||
patchShebangs --host ${pname}
|
patchShebangs --host ${pname}
|
||||||
substituteInPlace ./justfile \
|
|
||||||
--replace " /bin" " $out/bin" \
|
|
||||||
--replace " /usr" " $out"
|
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
just install
|
just --set bin-path $out/bin --set share-path $out/share linux-install
|
||||||
wrapProgram $out/bin/${pname} --suffix PATH : ${
|
wrapProgram $out/bin/${pname} --suffix PATH : ${
|
||||||
lib.makeBinPath [ dialog ]
|
lib.makeBinPath [ dialog ]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user