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