nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 libtool,
7 autoconf,
8 automake,
9 libjpeg,
10 libexif,
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "epeg";
15 version = "0.9.3";
16
17 src = fetchFromGitHub {
18 owner = "mattes";
19 repo = "epeg";
20 rev = "v${finalAttrs.version}";
21 sha256 = "sha256-lttqarR8gScNIlSrc5uU3FLfvwxxJ2A1S4oESUW7oIw=";
22 };
23
24 enableParallelBuilding = true;
25
26 nativeBuildInputs = [
27 pkg-config
28 libtool
29 autoconf
30 automake
31 ];
32
33 propagatedBuildInputs = [
34 libjpeg
35 libexif
36 ];
37
38 preConfigure = ''
39 ./autogen.sh
40 '';
41
42 meta = {
43 homepage = "https://github.com/mattes/epeg";
44 description = "Insanely fast JPEG/ JPG thumbnail scaling";
45 platforms = lib.platforms.linux ++ lib.platforms.darwin;
46 license = lib.licenses.mit-enna;
47 maintainers = with lib.maintainers; [ nh2 ];
48 mainProgram = "epeg";
49 };
50})