mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1018 B
Nix
38 lines
1018 B
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 absoulute 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;
|
|
};
|
|
}
|