Firefox: 134.0.2 -> 135.0; 128.6.0esr -> 128.7.0esr (#379636)
[NixPkgs.git] / pkgs / by-name / gf / gfie / package.nix
blobacd0a99a4de4ca9706ea1d6ffe6f8b3174175a45
2   lib,
3   stdenv,
4   fetchurl,
5   dpkg,
6   autoPatchelfHook,
7   qt5,
8 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "gfie";
11   version = "4.2";
13   src = fetchurl {
14     url = "http://greenfishsoftware.org/dl/gfie/gfie-${finalAttrs.version}.deb";
15     hash = "sha256-hyL0t66jRTVF1Hq2FRUobsfjLGmYgsMGDE/DBdoXhCI=";
16   };
18   unpackCmd = "dpkg -x $curSrc source";
20   nativeBuildInputs = [
21     dpkg
22     autoPatchelfHook
23     qt5.wrapQtAppsHook
24   ];
26   buildInputs = with qt5; [
27     qtbase
28     qtsvg
29     qtwebengine
30   ];
32   installPhase = ''
33     runHook preInstall
35     mkdir -p $out/bin
36     mv usr/share opt $out
37     ln -s $out/opt/gfie-${finalAttrs.version}/gfie $out/bin/gfie
39     runHook postInstall
40   '';
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   };