2020-06-15 15:56:04 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeDesktopItem
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, libpng
|
|
|
|
, giflib
|
|
|
|
, impy
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "EvilPixie";
|
|
|
|
desktopName = "EvilPixie";
|
|
|
|
exec = "evilpixie %F";
|
|
|
|
icon = "evilpixie";
|
|
|
|
genericName = "Image Editor";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Graphics" "2DGraphics" "RasterGraphics" ];
|
|
|
|
mimeTypes = [ "image/bmp" "image/gif" "image/jpeg" "image/jpg" "image/png" "image/x-pcx" "image/x-targa" "image/x-tga" ];
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in mkDerivation rec {
|
|
|
|
pname = "evilpixie";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "0.2.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bcampbell";
|
|
|
|
repo = "evilpixie";
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "0dwgfr8kmkfppgf5wx9i5f7fjz3gxk0ji1l06x1z4r3vj52hdbph";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
libpng
|
|
|
|
giflib
|
|
|
|
impy
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${desktopItem}/share/applications $out/share
|
|
|
|
install -Dm 444 icon_128x128.png $out/share/icons/hicolor/128x128/apps/evilpixie.png
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pixel-oriented paint program, modelled on Deluxe Paint";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/bcampbell/evilpixie"; # http://evilpixie.scumways.com/ is gone
|
2020-06-15 15:56:04 +00:00
|
|
|
downloadPage = "https://github.com/bcampbell/evilpixie/releases";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-06-15 15:56:04 +00:00
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|