571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
973 B
Nix
37 lines
973 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "json-c";
|
|
version = "0.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "json-c";
|
|
repo = "json-c";
|
|
rev = "json-c-0.17-20230812";
|
|
hash = "sha256-R5KIJ0xVgGqffjzJaZvvvhAneJ+ZBuanyF6KYTTxb58=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = with lib; {
|
|
description = "JSON implementation in C";
|
|
longDescription = ''
|
|
JSON-C implements a reference counting object model that allows you to
|
|
easily construct JSON objects in C, output them as JSON formatted strings
|
|
and parse JSON formatted strings back into the C representation of JSON
|
|
objects.
|
|
'';
|
|
homepage = "https://github.com/json-c/json-c/wiki";
|
|
changelog = "https://github.com/json-c/json-c/blob/${finalAttrs.src.rev}/ChangeLog";
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
platforms = platforms.unix;
|
|
license = licenses.mit;
|
|
};
|
|
})
|