mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
29ab705c17
repeat of #271241 discussion: #272978 I did not replace the instance in eiwd, since it causes an infinite recursion.
41 lines
877 B
Nix
41 lines
877 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, cunit
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libdict";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtbrick";
|
|
repo = "libdict";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-JM67lpXGacA0w8luQLc/83mAdHgtXnYlw543gUqUpRM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
buildInputs = [
|
|
cunit
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DLIBDICT_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}"
|
|
"-DLIBDICT_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rtbrick/libdict/";
|
|
changelog = "https://github.com/rtbrick/libdict/releases/tag/${finalAttrs.version}";
|
|
description = "C library of key-value data structures";
|
|
license = licenses.bsd2;
|
|
maintainers = teams.wdz.members;
|
|
};
|
|
})
|