1 { lib, stdenv, fetchgit, makeWrapper, coreutils, gawk, util-linux }:
4 pname = "openvpn-learnaddress";
5 version = "unstable-2013-10-21";
8 url = "https://gist.github.com/4058733.git";
9 rev = "19b03c3beb0190df46ea07bf4b68244acb8eae80";
10 sha256 = "16pcyvyhwsx34i0cjkkx906lmrwdd9gvznvqdwlad4ha8l8f8z42";
13 nativeBuildInputs = [ makeWrapper ];
14 buildInputs = [ coreutils gawk util-linux ];
17 install -Dm555 ovpn-learnaddress $out/libexec/openvpn/openvpn-learnaddress
19 wrapProgram $out/libexec/openvpn/openvpn-learnaddress \
20 --prefix PATH : ${lib.makeBinPath [ coreutils gawk util-linux ]}
24 description = "Openvpn learn-address script to manage a hosts-like file";
25 homepage = "https://gist.github.com/offlinehacker/4058733/";
26 maintainers = [ lib.maintainers.offline ];
27 platforms = lib.platforms.unix;