summary refs log tree commit diff
path: root/pkgs/os-specific/linux/macchanger
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-03-07 19:02:02 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2016-03-12 18:53:27 +0100
commit60a6f4c3f1e1e22ac3a261a741a55cfd68691266 (patch)
tree9368450e74bcba5533d5057083cdc43f2f53c953 /pkgs/os-specific/linux/macchanger
parente06570fe6b41fb0d00e5ce1a105414f1e1185226 (diff)
downloadnixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar.gz
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar.bz2
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar.lz
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar.xz
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.tar.zst
nixlib-60a6f4c3f1e1e22ac3a261a741a55cfd68691266.zip
macchanger: move build deps to nativeBuildInputs
Also inline redundant toplevel let bindings
Diffstat (limited to 'pkgs/os-specific/linux/macchanger')
-rw-r--r--pkgs/os-specific/linux/macchanger/default.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/pkgs/os-specific/linux/macchanger/default.nix b/pkgs/os-specific/linux/macchanger/default.nix
index b6ae89afbaf6..c335031f2e56 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 ];
+
+  outputs = [ "out" "info" ];
 
-  meta = {
+  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;
   };
 }