btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / li / libdnet / package.nix
blob58112ea2c2fd51b33ae83634ff2619b29142c665
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   automake,
6   autoconf,
7   libtool,
8   pkg-config,
9   check,
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "libdnet";
14   version = "1.18.0";
16   enableParallelBuilding = true;
18   src = fetchFromGitHub {
19     owner = "ofalk";
20     repo = "libdnet";
21     rev = "refs/tags/libdnet-${finalAttrs.version}";
22     hash = "sha256-oPlBQB9e8vGJ/rVydMqsZqdInhrpm2sNWkDl9JkkXCI=";
23   };
25   nativeBuildInputs = [
26     automake
27     autoconf
28     pkg-config
29     check
30   ];
31   buildInputs = [ libtool ];
33   # .so endings are missing (quick and dirty fix)
34   postInstall = ''
35     for i in $out/lib/*; do
36       ln -s $i $i.so
37     done
38   '';
40   meta = {
41     description = "Provides a simplified, portable interface to several low-level networking routines";
42     homepage = "https://github.com/dugsong/libdnet";
43     license = lib.licenses.bsd3;
44     maintainers = [ lib.maintainers.marcweber ];
45     platforms = lib.platforms.linux;
46   };