1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/tools/networking/tgt/default.nix
Ryan Mulligan 393644e28c tgt: 1.0.63 -> 1.0.73
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgt-admin help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -V` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --version` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtadm --help` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -V` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --version` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtd --help` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg -h` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg --help` got 0 exit code
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg -h` and found version 1.0.73
- ran `/nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73/bin/tgtimg --help` and found version 1.0.73
- found 1.0.73 with grep in /nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73
- found 1.0.73 in filename of file in /nix/store/65rigw0ss2lj29y55xxf6cfwbs00g01j-tgt-1.0.73
2018-02-28 11:48:19 +01:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, libxslt, libaio, systemd, perl, perlPackages
, docbook_xsl }:
let
version = "1.0.73";
in stdenv.mkDerivation rec {
name = "tgt-${version}";
src = fetchFromGitHub {
owner = "fujita";
repo = "tgt";
rev = "v${version}";
sha256 = "0alrdrklh5wq8x4xbp30zwnxkp0brx1mjkbp70dhaz0zbzvyydr0";
};
buildInputs = [ libxslt systemd libaio docbook_xsl ];
DESTDIR = "$(out)";
PREFIX = "/";
SD_NOTIFY="1";
preConfigure = ''
sed -i 's|/usr/bin/||' doc/Makefile
sed -i 's|/usr/include/libaio.h|${libaio}/include/libaio.h|' usr/Makefile
sed -i 's|/usr/include/sys/|${stdenv.glibc.dev}/include/sys/|' usr/Makefile
sed -i 's|/usr/include/linux/|${stdenv.glibc.dev}/include/linux/|' usr/Makefile
'';
postInstall = ''
sed -i 's|#!/usr/bin/perl|#! ${perl}/bin/perl -I${perlPackages.ConfigGeneral}/${perl.libPrefix}|' $out/sbin/tgt-admin
'';
enableParallelBuilding = true;
meta = {
description = "iSCSI Target daemon with rdma support";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}