From 6d7a847fda6afeb8ebe870ded8d2da4010534925 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 7 Jan 2019 01:32:53 +0000 Subject: 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. --- nixpkgs/pkgs/shells/zsh/grml-zsh-config/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'nixpkgs/pkgs') 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; -- cgit 1.4.1