parent
c16af617a8
commit
fac6b8cf3a
@ -1,6 +1,7 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchFromGitHub, ncurses, texinfo, writeScript
|
{ lib, stdenv, fetchurl, fetchFromGitHub, ncurses, texinfo, writeScript
|
||||||
, common-updater-scripts, git, nix, nixfmt-classic, coreutils, gnused, callPackage
|
, common-updater-scripts, git, nix, nixfmt-classic, coreutils, gnused
|
||||||
, file ? null, gettext ? null, enableNls ? true, enableTiny ? false }:
|
, callPackage, file ? null, gettext ? null, enableNls ? true, enableTiny ? false
|
||||||
|
}:
|
||||||
|
|
||||||
assert enableNls -> (gettext != null);
|
assert enableNls -> (gettext != null);
|
||||||
|
|
||||||
@ -14,11 +15,11 @@ let
|
|||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "nano";
|
pname = "nano";
|
||||||
version = "7.2";
|
version = "8.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/nano/${pname}-${version}.tar.xz";
|
url = "mirror://gnu/nano/${pname}-${version}.tar.xz";
|
||||||
sha256 = "hvNEJ2i9KHPOxpP4PN+AtLRErTzBR2C3Q2FHT8h6RSY=";
|
sha256 = "wX9D/A43M2sz7lCiCccB1b64CK3C2fCJyoMbQFOcmsQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext;
|
nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext;
|
||||||
@ -32,7 +33,9 @@ in stdenv.mkDerivation rec {
|
|||||||
(lib.enableFeature enableTiny "tiny")
|
(lib.enableFeature enableTiny "tiny")
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = if enableTiny then null else ''
|
postInstall = if enableTiny then
|
||||||
|
null
|
||||||
|
else ''
|
||||||
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user