nixpkgs/pkgs/os-specific/linux/open-isns/default.nix
Joachim Fasting ab6d358ebf
openisns: fix empty lib output
Looks like enable-shared defaults to false, so we actually
ended up with no usable object files in the lib output.

This also appears to have broken open-iscsi, as evinced by

/nix/store/[...]-binutils-2.27/bin/ld: cannot find -lisns
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:57: iscsid] Error 1

https://hydra.nixos.org/build/49437400/log/raw

With this patch, open-iscsi builds fine here.
2017-03-01 01:48:51 +01:00

30 lines
769 B
Nix

{ stdenv, openssl, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "open-isns-${version}";
version = "0.97";
src = fetchFromGitHub {
owner = "gonzoleeman";
repo = "open-isns";
rev = "v${version}";
sha256 = "17aichjgkwjfp9dx1piw7dw8ddz1bgm5mk3laid2zvjks1h739k3";
};
propagatedBuildInputs = [ openssl ];
outputs = [ "out" "lib" ];
outputInclude = "lib";
configureFlags = [ "--enable-shared" ];
installFlags = "etcdir=$(out)/etc vardir=$(out)/var/lib/isns";
installTargets = "install install_hdrs install_lib";
meta = {
description = "iSNS server and client for Linux";
license = stdenv.lib.licenses.lgpl21;
homepage = https://github.com/gonzoleeman/open-isns;
platforms = stdenv.lib.platforms.linux;
};
}