2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, autoreconfHook, glib, jansson }:
|
2018-01-28 14:57:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-28 14:58:22 +01:00
|
|
|
name = "xnbd-0.4.0";
|
2018-01-28 14:57:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-01-28 14:58:22 +01:00
|
|
|
url = "https://bitbucket.org/hirofuchi/xnbd/downloads/${name}.tgz";
|
|
|
|
sha256 = "00wkvsa0yaq4mabczcbfpj6rjvp02yahw8vdrq8hgb3wpm80x913";
|
2018-01-28 14:57:48 +01:00
|
|
|
};
|
|
|
|
|
2018-01-28 14:58:22 +01:00
|
|
|
sourceRoot = "${name}/trunk";
|
2018-01-28 14:57:48 +01:00
|
|
|
|
2020-01-19 22:39:04 +01:00
|
|
|
patches = [ ./0001-Fix-build-for-glibc-2.28.patch ];
|
|
|
|
|
2018-01-28 14:58:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
2018-03-18 11:30:13 +01:00
|
|
|
buildInputs = [ glib jansson ];
|
|
|
|
|
|
|
|
# do not build docs, it is slow and it fails on Hydra
|
|
|
|
prePatch = ''
|
|
|
|
rm -rf doc
|
|
|
|
substituteInPlace configure.ac --replace "doc/Makefile" ""
|
|
|
|
substituteInPlace Makefile.am --replace "lib doc ." "lib ."
|
|
|
|
'';
|
2018-01-28 14:57:48 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://bitbucket.org/hirofuchi/xnbd";
|
2018-01-28 14:57:48 +01:00
|
|
|
description = "Yet another NBD (Network Block Device) server program";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.volth ];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-01-28 14:57:48 +01:00
|
|
|
};
|
|
|
|
}
|