depot/third_party/nixpkgs/pkgs/by-name/ta/target-isns/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

43 lines
1 KiB
Nix

{
lib,
stdenv,
cmake,
fetchFromGitHub,
fetchpatch,
}:
stdenv.mkDerivation rec {
pname = "target-isns";
version = "0.6.8";
src = fetchFromGitHub {
owner = "open-iscsi";
repo = pname;
rev = "v${version}";
sha256 = "1b6jjalvvkkjyjbg1pcgk8vmvc6xzzksyjnh2pfi45bbpya4zxim";
};
patches = [
# fix absolute paths
./install_prefix_path.patch
# fix gcc 10 compiler warning, remove with next update
(fetchpatch {
url = "https://github.com/open-iscsi/target-isns/commit/3d0c47dd89bcf83d828bcc22ecaaa5f58d78b58e.patch";
sha256 = "1x2bkc1ff15621svhpq1r11m0q4ajv0j4fng6hm7wkkbr2s6d1vx";
})
];
cmakeFlags = [ "-DSUPPORT_SYSTEMD=ON" ];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "iSNS client for the Linux LIO iSCSI target";
mainProgram = "target-isns";
homepage = "https://github.com/open-iscsi/target-isns";
maintainers = [ maintainers.markuskowa ];
license = licenses.gpl2Only;
platforms = platforms.linux;
};
}