3
0
Fork 0
forked from mirrors/nixpkgs

evilpixie: 0.2.1 -> 0.3

This commit is contained in:
Francesco Gazzetta 2022-12-12 22:49:13 +01:00
parent cc74858a5a
commit 8ebf746e6c

View file

@ -1,52 +1,43 @@
{ mkDerivation
, lib
{ lib
, stdenv
, fetchFromGitHub
, makeDesktopItem
, qmake
, meson
, ninja
, pkg-config
, wrapQtAppsHook
, qtbase
, libpng
, giflib
, libjpeg
, impy
}:
let
desktopItem = makeDesktopItem {
name = "EvilPixie";
desktopName = "EvilPixie";
exec = "evilpixie %F";
icon = "evilpixie";
genericName = "Image Editor";
categories = [ "Graphics" "2DGraphics" "RasterGraphics" ];
mimeTypes = [ "image/bmp" "image/gif" "image/jpeg" "image/jpg" "image/png" "image/x-pcx" "image/x-targa" "image/x-tga" ];
};
in mkDerivation rec {
stdenv.mkDerivation rec {
pname = "evilpixie";
version = "0.2.1";
version = "0.3";
src = fetchFromGitHub {
owner = "bcampbell";
repo = "evilpixie";
rev = "v${version}";
sha256 = "0dwgfr8kmkfppgf5wx9i5f7fjz3gxk0ji1l06x1z4r3vj52hdbph";
sha256 = "sha256-t7ccaMXaCanCyn3oV8WJ11bhF7xTBkd992AheFJpSGQ=";
};
nativeBuildInputs = [
qmake
meson
ninja
pkg-config
wrapQtAppsHook
];
buildInputs = [
qtbase
libpng
giflib
libjpeg
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";
homepage = "https://github.com/bcampbell/evilpixie"; # http://evilpixie.scumways.com/ is gone
@ -54,6 +45,11 @@ in mkDerivation rec {
license = licenses.gpl3Only;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
# Undefined symbols for architecture x86_64:
# "_bundle_path", referenced from: App::SetupPaths() in src_app.cpp.o
broken = stdenv.isDarwin ||
# https://github.com/bcampbell/evilpixie/issues/28
stdenv.isAarch64;
};
}