about summary refs log tree commit diff
path: root/nixpkgs/pkgs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-01-07 01:32:53 +0000
committerAlyssa Ross <hi@alyssa.is>2019-01-07 16:25:37 +0000
commit6d7a847fda6afeb8ebe870ded8d2da4010534925 (patch)
tree536eadb5bfa00fdc741225cb6747b3e03d169551 /nixpkgs/pkgs
parent0928f7b8193a0d1771f0d268af7a20be0054b5df (diff)
downloadnixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar.gz
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar.bz2
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar.lz
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar.xz
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.tar.zst
nixlib-6d7a847fda6afeb8ebe870ded8d2da4010534925.zip
grml-zsh-config: remove unecessary dependencies
The buildInputs that used to be here appear to have been put here in the
hope that they would be installed and made available automatically as a
result of installing this package, but that isn't how buildInputs work.

They could be provided by using substituteInPlace to point the package
towards the Nix versions of these packages, but since this is a shell
configuration, I think it makes more sense (and is easier) to use
whatever versions of those commands are available at runtime.
Diffstat (limited to 'nixpkgs/pkgs')
-rw-r--r--nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix b/nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix
index b52255cc5949..5ae0be1e96f3 100644
--- a/nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix
+++ b/nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix
@@ -1,7 +1,4 @@
-{ stdenv, fetchFromGitHub, lib
-, zsh, coreutils, inetutils, procps, txt2tags }:
-
-with lib;
+{ stdenv, fetchFromGitHub, lib, txt2tags }:
 
 stdenv.mkDerivation rec {
   name = "grml-zsh-config-${version}";
@@ -14,8 +11,7 @@ stdenv.mkDerivation rec {
     sha256 = "15cr8pv1idshhq5d9sq4smgfl00iz55ji5mrxclsl3a35wg0djnw";
   };
 
-  buildInputs = [ zsh coreutils txt2tags procps ]
-    ++ optional stdenv.isLinux [ inetutils ];
+  nativeBuildInputs = [ txt2tags ];
 
   buildPhase = ''
     cd doc
@@ -31,7 +27,7 @@ stdenv.mkDerivation rec {
     ln -s grmlzshrc.5.gz $out/share/man/man5/grml-zsh-config.5.gz
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "grml's zsh setup";
     homepage = http://grml.org/zsh/;
     license = licenses.gpl2;