Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 meson, 6 ninja, 7 pkg-config, 8 libpng, 9 zlib, 10 giflib, 11 libjpeg, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "impy"; 16 version = "0.2"; 17 18 src = fetchFromGitHub { 19 owner = "bcampbell"; 20 repo = "impy"; 21 rev = "v${finalAttrs.version}"; 22 sha256 = "sha256-0bHm3jawYgcIeF2COALWlypX7kvPw1hifB/W+TKcC4M="; 23 }; 24 25 nativeBuildInputs = [ 26 meson 27 ninja 28 pkg-config 29 ]; 30 31 buildInputs = [ 32 libpng 33 zlib 34 giflib 35 libjpeg 36 ]; 37 38 meta = with lib; { 39 description = "Simple library for loading/saving images and animations, written in C"; 40 homepage = "https://github.com/bcampbell/impy"; 41 license = licenses.gpl3; 42 maintainers = with maintainers; [ fgaz ]; 43 platforms = platforms.all; 44 }; 45})