diff options
author | Anselm Schüler <mail@anselmschueler.com> | 2023-08-27 13:51:23 +0200 |
---|---|---|
committer | Anselm Schüler <mail@anselmschueler.com> | 2023-08-27 13:52:19 +0200 |
commit | 9d830541990252e859c00c9b5a7579bc9305c79c (patch) | |
tree | 7be0e4c7e1f62a8527c578323ee979862a85dad5 /pkgs | |
parent | 4525ce10b5ce3b95c0f07481e950ee5c229499fb (diff) |
nano: add file as a dependency to allow libmagic usage
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/editors/nano/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 5b51f9563c390..cbb53a8f99918 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchurl, fetchFromGitHub, ncurses, texinfo, writeScript , common-updater-scripts, git, nix, nixfmt, coreutils, gnused, callPackage -, gettext ? null, enableNls ? true, enableTiny ? false }: +, file ? null, gettext ? null, enableNls ? true, enableTiny ? false }: assert enableNls -> (gettext != null); @@ -22,7 +22,7 @@ in stdenv.mkDerivation rec { }; nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext; - buildInputs = [ ncurses ]; + buildInputs = [ ncurses ] ++ lib.optional (!enableTiny) file; outputs = [ "out" "info" ]; |