Merge pull request #90515 from fgaz/evilpixie/init

impy,evilpixie: init
This commit is contained in:
Timo Kaufmann 2020-06-20 16:04:30 +02:00 committed by GitHub
commit 40178ea3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 107 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{ mkDerivation
, lib
, fetchFromGitHub
, makeDesktopItem
, qmake
, qtbase
, libpng
, giflib
, impy
}:
let
desktopItem = makeDesktopItem {
name = "EvilPixie";
desktopName = "EvilPixie";
exec = "evilpixie %F";
icon = "evilpixie";
genericName = "Image Editor";
categories = "Graphics;2DGraphics;RasterGraphics;";
mimeType = "image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/x-pcx;image/x-targa;image/x-tga;";
};
in mkDerivation rec {
pname = "evilpixie";
version = "0.2";
src = fetchFromGitHub {
owner = "bcampbell";
repo = "evilpixie";
rev = "v${version}";
sha256 = "1yg4ic3kcxqmr7k5bbvrv5iavlnhpdx6510z5wha9k9k5q9c4dvh";
};
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";
homepage = "http://evilpixie.scumways.com/";
downloadPage = "https://github.com/bcampbell/evilpixie/releases";
license = licenses.gpl3;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
};
}

View File

@ -0,0 +1,44 @@
{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libpng
, zlib
, giflib
, libjpeg
, SDL2
}:
stdenv.mkDerivation rec {
pname = "impy";
version = "0.1";
src = fetchFromGitHub {
owner = "bcampbell";
repo = "impy";
rev = "v${version}";
sha256 = "1h45xjms56radhknspyx17a12dpnm7xgqm1x1chy42aw5ic8b5qf";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libpng
zlib
giflib
libjpeg
SDL2
];
meta = with stdenv.lib; {
description = "A simple library for loading/saving images and animations, written in C";
homepage = "https://github.com/bcampbell/impy";
license = licenses.gpl3;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
};
}

View File

@ -12458,6 +12458,8 @@ in
imlibsetroot = callPackage ../applications/graphics/imlibsetroot { libXinerama = xorg.libXinerama; } ;
impy = callPackage ../development/libraries/impy { };
ineffassign = callPackage ../development/tools/ineffassign { };
ijs = callPackage ../development/libraries/ijs { };
@ -19512,6 +19514,8 @@ in
evilvte = callPackage ../applications/misc/evilvte (config.evilvte or {});
evilpixie = libsForQt5.callPackage ../applications/graphics/evilpixie { };
exercism = callPackage ../applications/misc/exercism { };
go-motion = callPackage ../development/tools/go-motion { };