Unverified Commit 6ebb8a8a authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #330088 from Sigmanificient/libdnet

libdnet: 1.12 -> 1.18.0; change source to github
parents 754f7bf1 6b348f94
Loading
Loading
Loading
Loading
+25 −9
Original line number Diff line number Diff line
{lib, stdenv, fetchurl, automake, autoconf, libtool}:
{
  lib,
  stdenv,
  fetchFromGitHub,
  automake,
  autoconf,
  libtool,
  pkg-config,
  check,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libdnet";
  version = "1.12";
  version = "1.18.0";

  enableParallelBuilding = true;

  src = fetchurl {
    url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libdnet/libdnet-${version}.tgz";
    sha256 = "09mhbr8x66ykhf5581a5zjpplpjxibqzgkkpx689kybwg0wk1cw3";
  src = fetchFromGitHub {
    owner = "ofalk";
    repo = "libdnet";
    rev = "refs/tags/libdnet-${finalAttrs.version}";
    hash = "sha256-oPlBQB9e8vGJ/rVydMqsZqdInhrpm2sNWkDl9JkkXCI=";
  };

  nativeBuildInputs = [ automake autoconf ];
  nativeBuildInputs = [
    automake
    autoconf
    pkg-config
    check
  ];
  buildInputs = [ libtool ];

  # .so endings are missing (quick and dirty fix)
@@ -28,4 +44,4 @@ stdenv.mkDerivation rec {
    maintainers = [ lib.maintainers.marcweber ];
    platforms = lib.platforms.linux;
  };
}
})