Skip to content

Commit 920eac0

Browse files
committed
gfie: init at 4.2
1 parent 263dc0c commit 920eac0

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

pkgs/by-name/gf/gfie/package.nix

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
dpkg,
6+
autoPatchelfHook,
7+
qt5,
8+
}:
9+
stdenv.mkDerivation (finalAttrs: {
10+
pname = "gfie";
11+
version = "4.2";
12+
13+
src = fetchurl {
14+
url = "http://greenfishsoftware.org/dl/gfie/gfie-${finalAttrs.version}.deb";
15+
hash = "sha256-hyL0t66jRTVF1Hq2FRUobsfjLGmYgsMGDE/DBdoXhCI=";
16+
};
17+
18+
unpackCmd = "dpkg -x $curSrc source";
19+
20+
nativeBuildInputs = [
21+
dpkg
22+
autoPatchelfHook
23+
qt5.wrapQtAppsHook
24+
];
25+
26+
buildInputs = with qt5; [
27+
qtbase
28+
qtsvg
29+
qtwebengine
30+
];
31+
32+
installPhase = ''
33+
runHook preInstall
34+
35+
mkdir -p $out/bin
36+
mv usr/share opt $out
37+
ln -s $out/opt/gfie-${finalAttrs.version}/gfie $out/bin/gfie
38+
39+
runHook postInstall
40+
'';
41+
42+
meta = {
43+
description = "Powerful open source image editor, especially suitable for creating icons, cursors, animations and icon libraries";
44+
homepage = "http://greenfishsoftware.org/gfie.php";
45+
license = with lib.licenses; [ gpl3 ];
46+
maintainers = with lib.maintainers; [ pluiedev ];
47+
platforms = [ "x86_64-linux" ];
48+
mainProgram = "gfie";
49+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
50+
};
51+
})

0 commit comments

Comments
 (0)