gfie: init at 4.2 (#321007)

This commit is contained in:
Sandro 2024-11-12 18:51:49 +01:00 committed by GitHub
commit ef9b4bce3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,51 @@
{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
qt5,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gfie";
version = "4.2";
src = fetchurl {
url = "http://greenfishsoftware.org/dl/gfie/gfie-${finalAttrs.version}.deb";
hash = "sha256-hyL0t66jRTVF1Hq2FRUobsfjLGmYgsMGDE/DBdoXhCI=";
};
unpackCmd = "dpkg -x $curSrc source";
nativeBuildInputs = [
dpkg
autoPatchelfHook
qt5.wrapQtAppsHook
];
buildInputs = with qt5; [
qtbase
qtsvg
qtwebengine
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv usr/share opt $out
ln -s $out/opt/gfie-${finalAttrs.version}/gfie $out/bin/gfie
runHook postInstall
'';
meta = {
description = "Powerful open source image editor, especially suitable for creating icons, cursors, animations and icon libraries";
homepage = "http://greenfishsoftware.org/gfie.php";
license = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ pluiedev ];
platforms = [ "x86_64-linux" ];
mainProgram = "gfie";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})