Merge pull request #141536 from AndersonTorres/new-recutils

emacsPackages.rec-mode: init at 1.8

authored by Anderson Torres and committed by GitHub e57c97d7 f1220d72

+46 -20
+2
pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix
··· 198 198 199 199 railgun = callPackage ./railgun { }; 200 200 201 + rec-mode = callPackage ./rec-mode { }; 202 + 201 203 structured-haskell-mode = self.shm; 202 204 203 205 sv-kalender = callPackage ./sv-kalender { };
+18
pkgs/applications/editors/emacs/elisp-packages/rec-mode/default.nix
··· 1 + { lib 2 + , trivialBuild 3 + , recutils 4 + }: 5 + 6 + trivialBuild { 7 + pname = "rec-mode"; 8 + 9 + inherit (recutils) version src; 10 + 11 + postUnpack = '' 12 + sourceRoot="$sourceRoot/etc" 13 + ''; 14 + 15 + meta = recutils.meta // { 16 + description = "A major mode for editing rec files"; 17 + }; 18 + }
+26 -20
pkgs/tools/misc/recutils/default.nix
··· 1 - { fetchurl, lib, stdenv, emacs, curl, check, bc }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , bc 5 + , check 6 + , curl 7 + }: 2 8 3 9 stdenv.mkDerivation rec { 4 10 pname = "recutils"; 5 11 version = "1.8"; 6 12 7 13 src = fetchurl { 8 - url = "mirror://gnu/recutils/recutils-${version}.tar.gz"; 9 - sha256 = "14xiln4immfsw8isnvwvq0h23f6z0wilpgsc4qzabnrzb5lsx3nz"; 14 + url = "mirror://gnu/recutils/${pname}-${version}.tar.gz"; 15 + hash = "sha256-346uaVk/26U+Jky/SyMH37ghIMCbb6sj4trVGomlsZM="; 10 16 }; 11 17 12 18 hardeningDisable = [ "format" ]; 13 19 14 - buildInputs = [ curl emacs ]; 20 + buildInputs = [ 21 + curl 22 + ]; 15 23 16 - checkInputs = [ check bc ]; 24 + checkInputs = [ 25 + check 26 + bc 27 + ]; 17 28 doCheck = true; 18 29 19 - meta = { 20 - description = "Tools and libraries to access human-editable, text-based databases"; 21 - 22 - longDescription = 23 - '' GNU Recutils is a set of tools and libraries to access 24 - human-editable, text-based databases called recfiles. The data is 25 - stored as a sequence of records, each record containing an arbitrary 26 - number of named fields. 27 - ''; 28 - 30 + meta = with lib; { 29 31 homepage = "https://www.gnu.org/software/recutils/"; 30 - 31 - license = lib.licenses.gpl3Plus; 32 - 33 - platforms = lib.platforms.all; 34 - maintainers = [ ]; 32 + description = "Tools and libraries to access human-editable, text-based databases"; 33 + longDescription = '' 34 + GNU Recutils is a set of tools and libraries to access human-editable, 35 + text-based databases called recfiles. The data is stored as a sequence of 36 + records, each record containing an arbitrary number of named fields. 37 + ''; 38 + license = licenses.gpl3Plus; 39 + maintainers = with maintainers; [ AndersonTorres ]; 40 + platforms = platforms.all; 35 41 }; 36 42 }