mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
ff8752a603
Reworks: * lgpl21 => lgpl21Only (jtojnar) * stdenv.lib => lib (jtojnar) * Use 1.1 tagged version rather than sha1 from inkscape 1.1 (jtojnar) * BUILD_SHARED_LIBS => 2GEOM_BUILD_SHARED (jtojnar) * Drop cmakeBuildType (jtojnar)
61 lines
981 B
Nix
61 lines
981 B
Nix
{ stdenv
|
|
, fetchFromGitLab
|
|
, cmake
|
|
, ninja
|
|
, pkg-config
|
|
, boost
|
|
, glib
|
|
, gsl
|
|
, cairo
|
|
, double-conversion
|
|
, gtest
|
|
, lib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lib2geom";
|
|
version = "1.1";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "inkscape";
|
|
repo = "lib2geom";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-u9pbpwVzAXzrM2/tQnd1B6Jo9Fzg6UZBr9AtUsNMfQ0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
glib
|
|
gsl
|
|
cairo
|
|
double-conversion
|
|
];
|
|
|
|
checkInputs = [
|
|
gtest
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
|
|
"-D2GEOM_BUILD_SHARED=ON"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Easy to use 2D geometry library in C++";
|
|
homepage = "https://gitlab.com/inkscape/lib2geom";
|
|
license = [ licenses.lgpl21Only licenses.mpl11 ];
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|