diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libnet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libnet/default.nix | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libnet/default.nix b/nixpkgs/pkgs/development/libraries/libnet/default.nix index cb3375708df1..af3c7f82aefa 100644 --- a/nixpkgs/pkgs/development/libraries/libnet/default.nix +++ b/nixpkgs/pkgs/development/libraries/libnet/default.nix @@ -1,15 +1,23 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool }: stdenv.mkDerivation rec { pname = "libnet"; - version = "1.2-rc3"; + version = "1.2"; - src = fetchurl { - url = "mirror://sourceforge/libnet-dev/${pname}-${version}.tar.gz"; - sha256 = "0qsapqa7dzq9f6lb19kzilif0pj82b64fjv5bq086hflb9w81hvj"; + src = fetchFromGitHub { + owner = "sam-github"; + repo = "libnet"; + rev = "v${version}"; + sha256 = "sha256-Y/wd9c4whUbfpvWvKzJV6vJN3AlA14XBejchRG6wBc4="; }; - patches = [ ./fix-includes.patch ]; + nativeBuildInputs = [ + autoconf + automake + libtool + ]; + + preConfigure = "./autogen.sh"; meta = with lib; { homepage = "https://github.com/sam-github/libnet"; |