mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
libdict: init at 1.0.3
This commit is contained in:
parent
3ff9ed03fb
commit
5f3dbc3622
40
pkgs/by-name/li/libdict/package.nix
Normal file
40
pkgs/by-name/li/libdict/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ 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.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/${version}";
|
||||
description = "C library of key-value data structures";
|
||||
license = licenses.bsd2;
|
||||
maintainers = teams.wdz.members;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user