From bc2dc7de5e4d8c073b9adf28176516fa968a3d34 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Sep 2015 15:30:59 +0200 Subject: [PATCH 1/2] bwm_ng: 0.6 -> 0.6.1 --- pkgs/tools/networking/bwm-ng/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/bwm-ng/default.nix b/pkgs/tools/networking/bwm-ng/default.nix index 6fa0c20b0acd..91eec73b9dca 100644 --- a/pkgs/tools/networking/bwm-ng/default.nix +++ b/pkgs/tools/networking/bwm-ng/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, ncurses }: stdenv.mkDerivation rec { - name = "bwm-ng-0.6"; + name = "bwm-ng-0.6.1"; src = fetchurl { url = "http://www.gropp.org/bwm-ng/${name}.tar.gz"; - sha256 = "1pgzc8y2y73n72qvbd2g0dkbkw5h0f83k5h9id1rsck8w9c464y1"; + sha256 = "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"; }; buildInputs = [ ncurses ]; From 8ca7e4c2d1b5ace88660bdf86760982cd500cc65 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Sep 2015 15:33:42 +0200 Subject: [PATCH 2/2] bwm_ng: Move version to own variable --- pkgs/tools/networking/bwm-ng/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/bwm-ng/default.nix b/pkgs/tools/networking/bwm-ng/default.nix index 91eec73b9dca..353425108a2e 100644 --- a/pkgs/tools/networking/bwm-ng/default.nix +++ b/pkgs/tools/networking/bwm-ng/default.nix @@ -1,8 +1,11 @@ { stdenv, fetchurl, ncurses }: +let + version = "0.6.1"; +in stdenv.mkDerivation rec { - name = "bwm-ng-0.6.1"; - + name = "bwm-ng-${version}"; + src = fetchurl { url = "http://www.gropp.org/bwm-ng/${name}.tar.gz"; sha256 = "1w0dwpjjm9pqi613i8glxrgca3rdyqyp3xydzagzr5ndc34z6z02"; @@ -42,7 +45,7 @@ stdenv.mkDerivation rec { This was influenced by the old bwm util written by Barney (barney@freewill.tzo.com) which had some issues with faster interfaces and was very simple. Since i had almost all code done anyway for other projects, i decided to create my own version. I actually don't know if netstat input is useful at all. I saw this elsewhere, so i added it. Its target is "netstat 1.42 (2001-04-15)" linux or Free/Open/netBSD. If there are other formats i would be happy to add them. - + (from homepage) ''; };