nixpkgs/pkgs/development/libraries/liblqr-1/default.nix
Sheldon Neuberger 40f68f68f7 liblqr: fix compilation on x86_64_darwin
Add AppKit dependency, fixes error: "ld: file not found:
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit for
architecture x86_64".
2022-09-11 19:20:56 -04:00

27 lines
705 B
Nix

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