diff --git a/pkgs/tools/networking/wavemon/default.nix b/pkgs/tools/networking/wavemon/default.nix index b5927fd2478..ece252a9b6c 100644 --- a/pkgs/tools/networking/wavemon/default.nix +++ b/pkgs/tools/networking/wavemon/default.nix @@ -1,45 +1,20 @@ -x@{builderDefsPackage - , ncurses - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; - - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="wavemon"; - version = "0.7.6"; - name="${baseName}-${version}"; - url="http://eden-feed.erg.abdn.ac.uk/wavemon/stable-releases/${name}.tar.bz2"; +{stdenv, fetchgit, ncurses, libnl, pkgconfig}: +stdenv.mkDerivation rec { + version = "0.7.6.20151001"; + baseName="wavemon"; + name="${baseName}-${version}"; + buildInputs = [ncurses libnl pkgconfig]; + src = fetchgit { + url = https://github.com/uoaerg/wavemon.git ; + rev = "05753aed2ec5a786d602c7903c89fc6a230f8d42"; + sha256 = "13y4bi4qz4596f11ng6zaqir5j234wv64z4670q3pzh3fqmzmpm4"; }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = "18cwlzgmwzy7z9dfr6lwd8kmkv0pqiihizm4gi0kkm52bzz6836y"; - }; - - inherit (sourceInfo) name version; - inherit buildInputs; - - /* doConfigure should be removed if not needed */ - phaseNames = ["doConfigure" "doMakeInstall"]; - meta = { - description = "WiFi state monitor"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - license = a.lib.licenses.gpl2Plus; - downloadPage = "http://eden-feed.erg.abdn.ac.uk/wavemon/"; inherit version; - updateWalker = true; + description = "WiFi state monitor"; + license = stdenv.lib.licenses.gpl3Plus ; + maintainers = [stdenv.lib.maintainers.raskin]; + platforms = stdenv.lib.platforms.linux; + downloadPage = https://github.com/uoaerg/wavemon.git ; }; -}) x - +}