Merge pull request #330088 from Sigmanificient/libdnet

libdnet: 1.12 -> 1.18.0; change source to github
This commit is contained in:
Peder Bergebakken Sundt
2024-08-01 03:22:43 +02:00
committed by GitHub
+25 -9
View File
@@ -1,17 +1,33 @@
{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)
@@ -25,7 +41,7 @@ stdenv.mkDerivation rec {
description = "Provides a simplified, portable interface to several low-level networking routines";
homepage = "https://github.com/dugsong/libdnet";
license = lib.licenses.bsd3;
maintainers = [lib.maintainers.marcweber];
maintainers = [ lib.maintainers.marcweber ];
platforms = lib.platforms.linux;
};
}
})