2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, libtool, autoconf, automake
|
2018-05-02 21:35:15 +01:00
|
|
|
, libjpeg, libexif
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-14 02:37:56 +01:00
|
|
|
pname = "epeg";
|
|
|
|
version = "0.9.2";
|
2018-05-02 21:35:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattes";
|
|
|
|
repo = "epeg";
|
2019-04-14 02:37:56 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "14bjl9v6zzac4df25gm3bkw3n0mza5iazazsi65gg3m6661x6c5g";
|
2018-05-02 21:35:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libtool autoconf automake ];
|
2018-05-02 21:35:15 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ libjpeg libexif ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mattes/epeg";
|
2018-05-02 21:35:15 +01:00
|
|
|
description = "Insanely fast JPEG/ JPG thumbnail scaling";
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-08-23 10:57:07 +01:00
|
|
|
license = {
|
|
|
|
url = "https://github.com/mattes/epeg#license";
|
|
|
|
};
|
2018-05-02 21:35:15 +01:00
|
|
|
maintainers = with maintainers; [ nh2 ];
|
|
|
|
};
|
|
|
|
}
|