2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-06-15 16:43:07 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-12 21:48:51 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-06-15 16:43:07 +00:00
|
|
|
, pkg-config
|
|
|
|
, libpng
|
|
|
|
, zlib
|
|
|
|
, giflib
|
|
|
|
, libjpeg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "impy";
|
2022-12-12 21:48:51 +00:00
|
|
|
version = "0.2";
|
2020-06-15 16:43:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bcampbell";
|
|
|
|
repo = "impy";
|
|
|
|
rev = "v${version}";
|
2022-12-12 21:48:51 +00:00
|
|
|
sha256 = "sha256-0bHm3jawYgcIeF2COALWlypX7kvPw1hifB/W+TKcC4M=";
|
2020-06-15 16:43:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-12-12 21:48:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-06-15 16:43:07 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpng
|
|
|
|
zlib
|
|
|
|
giflib
|
|
|
|
libjpeg
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-06-15 16:43:07 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|