···11+{ lib
22+, trivialBuild
33+, recutils
44+}:
55+66+trivialBuild {
77+ pname = "rec-mode";
88+99+ inherit (recutils) version src;
1010+1111+ postUnpack = ''
1212+ sourceRoot="$sourceRoot/etc"
1313+ '';
1414+1515+ meta = recutils.meta // {
1616+ description = "A major mode for editing rec files";
1717+ };
1818+}
+26-20
pkgs/tools/misc/recutils/default.nix
···11-{ fetchurl, lib, stdenv, emacs, curl, check, bc }:
11+{ lib
22+, stdenv
33+, fetchurl
44+, bc
55+, check
66+, curl
77+}:
2839stdenv.mkDerivation rec {
410 pname = "recutils";
511 version = "1.8";
612713 src = fetchurl {
88- url = "mirror://gnu/recutils/recutils-${version}.tar.gz";
99- sha256 = "14xiln4immfsw8isnvwvq0h23f6z0wilpgsc4qzabnrzb5lsx3nz";
1414+ url = "mirror://gnu/recutils/${pname}-${version}.tar.gz";
1515+ hash = "sha256-346uaVk/26U+Jky/SyMH37ghIMCbb6sj4trVGomlsZM=";
1016 };
11171218 hardeningDisable = [ "format" ];
13191414- buildInputs = [ curl emacs ];
2020+ buildInputs = [
2121+ curl
2222+ ];
15231616- checkInputs = [ check bc ];
2424+ checkInputs = [
2525+ check
2626+ bc
2727+ ];
1728 doCheck = true;
18291919- meta = {
2020- description = "Tools and libraries to access human-editable, text-based databases";
2121-2222- longDescription =
2323- '' GNU Recutils is a set of tools and libraries to access
2424- human-editable, text-based databases called recfiles. The data is
2525- stored as a sequence of records, each record containing an arbitrary
2626- number of named fields.
2727- '';
2828-3030+ meta = with lib; {
2931 homepage = "https://www.gnu.org/software/recutils/";
3030-3131- license = lib.licenses.gpl3Plus;
3232-3333- platforms = lib.platforms.all;
3434- maintainers = [ ];
3232+ description = "Tools and libraries to access human-editable, text-based databases";
3333+ longDescription = ''
3434+ GNU Recutils is a set of tools and libraries to access human-editable,
3535+ text-based databases called recfiles. The data is stored as a sequence of
3636+ records, each record containing an arbitrary number of named fields.
3737+ '';
3838+ license = licenses.gpl3Plus;
3939+ maintainers = with maintainers; [ AndersonTorres ];
4040+ platforms = platforms.all;
3541 };
3642}