nixpkgs/pkgs/tools/networking/xnbd/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
959 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, glib, jansson }:
2018-01-28 13:57:48 +00:00
stdenv.mkDerivation rec {
pname = "xnbd";
version = "0.4.0";
2018-01-28 13:57:48 +00:00
src = fetchurl {
url = "https://bitbucket.org/hirofuchi/xnbd/downloads/xnbd-${version}.tgz";
2018-01-28 13:58:22 +00:00
sha256 = "00wkvsa0yaq4mabczcbfpj6rjvp02yahw8vdrq8hgb3wpm80x913";
2018-01-28 13:57:48 +00:00
};
sourceRoot = "xnbd-${version}/trunk";
2018-01-28 13:57:48 +00:00
2020-01-19 21:39:04 +00:00
patches = [ ./0001-Fix-build-for-glibc-2.28.patch ];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2018-01-28 13:58:22 +00:00
2018-03-18 10:30:13 +00: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 13:57:48 +00:00
meta = {
homepage = "https://bitbucket.org/hirofuchi/xnbd";
2018-01-28 13:57:48 +00:00
description = "Yet another NBD (Network Block Device) server program";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl2;
maintainers = [ ];
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.linux;
2018-01-28 13:57:48 +00:00
};
}