2021-09-18 10:52:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, Carbon }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "liblqr-1";
|
|
|
|
version = "0.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "carlobaldassi";
|
|
|
|
repo = "liblqr";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10mrl5k3l2hxjhz4w93n50xwywp6y890rw2vsjcgai8627x5f1df";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-09-18 10:52:07 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Carbon ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://liblqr.wikidot.com";
|
|
|
|
description = "Seam-carving C/C++ library called Liquid Rescaling";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = with licenses; [ gpl3 lgpl3 ];
|
|
|
|
};
|
|
|
|
}
|