1{ lib, stdenv
2, fetchFromGitHub
3, cmake
4, pkg-config
5, libpng
6, zlib
7, giflib
8, libjpeg
9, SDL2
10}:
11
12stdenv.mkDerivation rec {
13 pname = "impy";
14 version = "0.1";
15
16 src = fetchFromGitHub {
17 owner = "bcampbell";
18 repo = "impy";
19 rev = "v${version}";
20 sha256 = "1h45xjms56radhknspyx17a12dpnm7xgqm1x1chy42aw5ic8b5qf";
21 };
22
23 nativeBuildInputs = [
24 cmake
25 pkg-config
26 ];
27
28 buildInputs = [
29 libpng
30 zlib
31 giflib
32 libjpeg
33 SDL2
34 ];
35
36 meta = with lib; {
37 description = "A simple library for loading/saving images and animations, written in C";
38 homepage = "https://github.com/bcampbell/impy";
39 license = licenses.gpl3;
40 maintainers = with maintainers; [ fgaz ];
41 platforms = platforms.all;
42 };
43}
44