Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / liblqr-1 / default.nix
blob6b8c2ebeaa9484133168b8f6729d7e6417618006
1 { lib, stdenv, fetchFromGitHub, pkg-config, glib, Carbon, AppKit }:
3 stdenv.mkDerivation rec {
4   pname = "liblqr-1";
5   version = "0.4.2";
7   outputs = [ "out" "dev" ];
9   src = fetchFromGitHub {
10     owner = "carlobaldassi";
11     repo = "liblqr";
12     rev = "v${version}";
13     sha256 = "10mrl5k3l2hxjhz4w93n50xwywp6y890rw2vsjcgai8627x5f1df";
14   };
16   nativeBuildInputs = [ pkg-config ];
17   buildInputs = lib.optionals stdenv.isDarwin [ Carbon AppKit ];
18   propagatedBuildInputs = [ glib ];
20   meta = with lib; {
21     homepage = "http://liblqr.wikidot.com";
22     description = "Seam-carving C/C++ library called Liquid Rescaling";
23     platforms = platforms.all;
24     license = with licenses; [ gpl3 lgpl3 ];
25   };