nixpkgs/pkgs/tools/misc/recutils/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

44 lines
991 B
Nix

{ lib
, stdenv
, fetchurl
, bc
, check
, curl
}:
stdenv.mkDerivation rec {
pname = "recutils";
version = "1.9";
src = fetchurl {
url = "mirror://gnu/recutils/${pname}-${version}.tar.gz";
hash = "sha256-YwFZKwAgwUtFZ1fvXUNNSfYCe45fOkmdEzYvIFxIbg4=";
};
hardeningDisable = lib.optional stdenv.cc.isClang "format";
buildInputs = [
curl
];
nativeCheckInputs = [
bc
check
];
doCheck = true;
meta = with lib; {
homepage = "https://www.gnu.org/software/recutils/";
description = "Tools and libraries to access human-editable, text-based databases";
longDescription = ''
GNU Recutils is a set of tools and libraries to access human-editable,
text-based databases called recfiles. The data is stored as a sequence of
records, each record containing an arbitrary number of named fields.
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.all;
};
}