Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "libiscsi"; 5 version = "1.19.0"; 6 7 src = fetchFromGitHub { 8 owner = "sahlberg"; 9 repo = "libiscsi"; 10 rev = version; 11 sha256 = "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 16 # This problem is gone on libiscsi master. 17 env.NIX_CFLAGS_COMPILE = toString (lib.optional stdenv.hostPlatform.is32bit "-Wno-error=sign-compare"); 18 19 meta = with lib; { 20 description = "iscsi client library and utilities"; 21 homepage = "https://github.com/sahlberg/libiscsi"; 22 license = licenses.lgpl2; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ misuzu ]; 25 }; 26}