2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-08-12 13:44:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libiscsi";
|
|
|
|
version = "1.19.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sahlberg";
|
|
|
|
repo = "libiscsi";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2021-08-27 14:16:30 +02:00
|
|
|
# This can be removed after >=1.20.0, or if the build suceeds with
|
|
|
|
# pie enabled (default on Musl).
|
|
|
|
hardeningDisable = [ "pie" ];
|
|
|
|
|
2021-01-21 10:32:37 +01:00
|
|
|
# This problem is gone on libiscsi master.
|
2021-08-27 14:16:30 +02:00
|
|
|
NIX_CFLAGS_COMPILE =
|
|
|
|
lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare";
|
2021-01-21 10:32:37 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-08-12 13:44:28 +02:00
|
|
|
description = "iscsi client library and utilities";
|
|
|
|
homepage = "https://github.com/sahlberg/libiscsi";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|