nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 cmake,
6 python3,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "lemon-graph";
11 version = "1.3.1";
12
13 src = fetchurl {
14 url = "https://lemon.cs.elte.hu/pub/sources/lemon-${finalAttrs.version}.tar.gz";
15 sha256 = "1j6kp9axhgna47cfnmk1m7vnqn01hwh7pf1fp76aid60yhjwgdvi";
16 };
17
18 buildInputs = [ python3 ];
19 nativeBuildInputs = [ cmake ];
20
21 # error: no viable conversion from ...
22 doCheck = !stdenv.hostPlatform.isDarwin;
23
24 patches = [
25 # error: ISO C++17 does not allow 'register' storage class specifier
26 ./remove-register.patch
27
28 # fix cmake compatibility. vendored from https://github.com/The-OpenROAD-Project/lemon-graph/pull/2
29 ./cmake_version.patch
30
31 # fix C++20 compatibility. vendored from https://github.com/The-OpenROAD-Project/lemon-graph/commit/f871b10396270cfd09ffddc4b6ead07722e9c232
32 ./update_cxx20.patch
33 ];
34
35 meta = {
36 homepage = "https://lemon.cs.elte.hu/trac/lemon";
37 description = "Efficient library for combinatorial optimization tasks on graphs and networks";
38 license = lib.licenses.boost;
39 maintainers = with lib.maintainers; [ trepetti ];
40 platforms = lib.platforms.all;
41 };
42})