linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / orcania / default.nix
blob157769c7772fe3e6aa0e4cfd980e296b19c00379
1 { lib, stdenv, fetchFromGitHub, cmake, check, subunit }:
2 stdenv.mkDerivation rec {
3   pname = "orcania";
4   version = "2.2.0";
6   src = fetchFromGitHub {
7     owner = "babelouest";
8     repo = pname;
9     rev = "v${version}";
10     sha256 = "sha256-tArXiXmoWHd42IGBZKtc4QJIBy3USPlSeW+Dv5xl1EU=";
11   };
13   nativeBuildInputs = [ cmake ];
15   checkInputs = [ check subunit ];
17   cmakeFlags = [ "-DBUILD_ORCANIA_TESTING=on" ];
19   doCheck = true;
21   preCheck = ''
22     export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
23     export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
24   '';
26   meta = with lib; {
27     description = "Potluck with different functions for different purposes that can be shared among C programs";
28     homepage = "https://github.com/babelouest/orcania";
29     license = licenses.lgpl21;
30     maintainers = with maintainers; [ johnazoidberg ];
31   };