at 22.05-pre 48 lines 1.8 kB view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, texinfo }: 2 3stdenv.mkDerivation rec { 4 pname = "macchanger"; 5 version = "1.7.0"; 6 7 src = fetchFromGitHub { 8 owner = "alobbs"; 9 repo = "macchanger"; 10 rev = version; 11 sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r"; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/02-fix_usage_message.patch"; 17 sha256 = "0pxljmq0l0znylbhms09i19qwil74gm8gx3xx2ffx00dajaizj18"; 18 }) 19 (fetchpatch { 20 url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/06-update_OUI_list.patch"; 21 sha256 = "04kbd784z9nwkjva5ckkvb0yb3pim9valb1viywn1yyh577d0y7w"; 22 }) 23 (fetchpatch { 24 url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/08-fix_random_MAC_choice.patch"; 25 sha256 = "1vz3appxxsdf1imzrn57amazfwlbrvx6g78b6n88aqgwzy5dm34d"; 26 }) 27 (fetchpatch { 28 url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/check-random-device-read-errors.patch"; 29 sha256 = "0pra6qnk39crjlidspg3l6hpaqiw43cypahx793l59mqn956cngc"; 30 }) 31 (fetchpatch { 32 url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/verify-changed-MAC.patch"; 33 sha256 = "0vjhf2fnj1hlghjl821p6idrfc8hmd4lgps5lf1l68ylqvwjw0zj"; 34 }) 35 ]; 36 37 nativeBuildInputs = [ autoreconfHook texinfo ]; 38 39 outputs = [ "out" "info" ]; 40 41 meta = with lib; { 42 description = "A utility for viewing/manipulating the MAC address of network interfaces"; 43 maintainers = with maintainers; [ joachifm ma27 dotlambda ]; 44 license = licenses.gpl2Plus; 45 homepage = "https://github.com/alobbs/macchanger"; 46 platforms = platforms.linux; 47 }; 48}