2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
glib,
|
|
|
|
Carbon,
|
|
|
|
AppKit,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "liblqr-1";
|
|
|
|
version = "0.4.2";
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "carlobaldassi";
|
|
|
|
repo = "liblqr";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10mrl5k3l2hxjhz4w93n50xwywp6y890rw2vsjcgai8627x5f1df";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-06-30 08:12:46 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Carbon
|
|
|
|
AppKit
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://liblqr.wikidot.com";
|
|
|
|
description = "Seam-carving C/C++ library called Liquid Rescaling";
|
|
|
|
platforms = platforms.all;
|
2024-06-30 08:12:46 +00:00
|
|
|
license = with licenses; [
|
|
|
|
gpl3
|
|
|
|
lgpl3
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
}
|