From 60a6f4c3f1e1e22ac3a261a741a55cfd68691266 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Mon, 7 Mar 2016 19:02:02 +0100 Subject: [PATCH] macchanger: move build deps to nativeBuildInputs Also inline redundant toplevel let bindings --- pkgs/os-specific/linux/macchanger/default.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/os-specific/linux/macchanger/default.nix b/pkgs/os-specific/linux/macchanger/default.nix index b6ae89afbaf..c335031f2e5 100644 --- a/pkgs/os-specific/linux/macchanger/default.nix +++ b/pkgs/os-specific/linux/macchanger/default.nix @@ -1,12 +1,8 @@ { stdenv, fetchFromGitHub, autoreconfHook, texinfo }: -let - pname = "macchanger"; - version = "1.7.0"; -in - stdenv.mkDerivation rec { - name = "${pname}-${version}"; + name = "macchanger-${version}"; + version = "1.7.0"; src = fetchFromGitHub { owner = "alobbs"; @@ -15,13 +11,15 @@ stdenv.mkDerivation rec { sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r"; }; - buildInputs = [ autoreconfHook texinfo ]; + nativeBuildInputs = [ autoreconfHook texinfo ]; - meta = { + outputs = [ "out" "info" ]; + + meta = with stdenv.lib; { description = "A utility for viewing/manipulating the MAC address of network interfaces"; - maintainers = [ stdenv.lib.maintainers.joachifm ]; - license = stdenv.lib.licenses.gpl2Plus; - homepage = "https://www.gnu.org/software/macchanger"; - platforms = stdenv.lib.platforms.linux; + maintainers = with maintainers; [ joachifm ]; + license = licenses.gpl2Plus; + homepage = https://www.gnu.org/software/macchanger; + platforms = platforms.linux; }; }