macchanger: move build deps to nativeBuildInputs

Also inline redundant toplevel let bindings
This commit is contained in:
Joachim Fasting 2016-03-07 19:02:02 +01:00
parent e06570fe6b
commit 60a6f4c3f1

View File

@ -1,12 +1,8 @@
{ stdenv, fetchFromGitHub, autoreconfHook, texinfo }: { stdenv, fetchFromGitHub, autoreconfHook, texinfo }:
let
pname = "macchanger";
version = "1.7.0";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}"; name = "macchanger-${version}";
version = "1.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alobbs"; owner = "alobbs";
@ -15,13 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r"; 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"; description = "A utility for viewing/manipulating the MAC address of network interfaces";
maintainers = [ stdenv.lib.maintainers.joachifm ]; maintainers = with maintainers; [ joachifm ];
license = stdenv.lib.licenses.gpl2Plus; license = licenses.gpl2Plus;
homepage = "https://www.gnu.org/software/macchanger"; homepage = https://www.gnu.org/software/macchanger;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
}; };
} }