diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-07 14:04:47 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-07 14:04:47 +0100 |
commit | ba08e4e99b00a6916c4360de7288a7bfcef85328 (patch) | |
tree | 347c8b6ad50fcaafc08e50f1307a861378650440 /nixpkgs/pkgs/by-name/li/libdict/package.nix | |
parent | 190fd93d11701ad81af757be6260df9635bdb41a (diff) | |
parent | 2c7f3c0fb7c08a0814627611d9d7d45ab6d75335 (diff) | |
download | nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.gz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.bz2 nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.lz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.xz nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.tar.zst nixlib-ba08e4e99b00a6916c4360de7288a7bfcef85328.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/li/libdict/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/li/libdict/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/libdict/package.nix b/nixpkgs/pkgs/by-name/li/libdict/package.nix new file mode 100644 index 000000000000..1c6e770299ca --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/libdict/package.nix @@ -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; + }; +}) |