From 4fdb98f54072768d06c8a2b35563f8c03582cce3 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Wed, 19 Nov 2014 04:12:02 +0100 Subject: [PATCH] macchanger: new expression GNU macchanger is a tool for viewing/changing the MAC address of a network device, with support for address randomisation. --- pkgs/os-specific/linux/macchanger/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/os-specific/linux/macchanger/default.nix diff --git a/pkgs/os-specific/linux/macchanger/default.nix b/pkgs/os-specific/linux/macchanger/default.nix new file mode 100644 index 000000000000..1bbad958bfd0 --- /dev/null +++ b/pkgs/os-specific/linux/macchanger/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl }: + +let + pname = "macchanger"; + version = "1.6.0"; +in + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + src = fetchurl { + url = "mirror://gnu/${pname}/${name}.tar.gz"; + sha256 = "31534f138f1d21fa247be74ba6bef3fbfa47bbcd5033e99bd10c432fe58e51f7"; + }; + + meta = { + description = "A utility for viewing/manipulating the MAC address of network interfaces"; + maintainer = with stdenv.lib.maintainers; [ joachifm ]; + license = with stdenv.lib.licenses; gpl2Plus; + homepage = "https://www.gnu.org/software/macchanger"; + platform = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c96d5b255ed3..517737b3a16f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1656,6 +1656,8 @@ let lzop = callPackage ../tools/compression/lzop { }; + macchanger = callPackage ../os-specific/linux/macchanger { }; + maildrop = callPackage ../tools/networking/maildrop { }; mailsend = callPackage ../tools/networking/mailsend { };