uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/os-specific/linux/open-iscsi/default.nix
Normal file
54
pkgs/os-specific/linux/open-iscsi/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool, gettext
|
||||
, util-linux, open-isns, openssl, kmod, perl, systemd, pkgconf, nixosTests
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "open-iscsi";
|
||||
version = "2.1.4";
|
||||
|
||||
nativeBuildInputs = [ autoconf automake gettext libtool perl pkgconf ];
|
||||
buildInputs = [ kmod open-isns.lib openssl systemd util-linux ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-iscsi";
|
||||
repo = "open-iscsi";
|
||||
rev = version;
|
||||
sha256 = "sha256-HnvLLwxOnu7Oiige6A6zk9NmAI2ImcILp9eCfbdGiyI=";
|
||||
};
|
||||
|
||||
DESTDIR = "$(out)";
|
||||
|
||||
NIX_LDFLAGS = "-lkmod -lsystemd";
|
||||
NIX_CFLAGS_COMPILE = "-DUSE_KMOD";
|
||||
|
||||
preConfigure = ''
|
||||
sed -i 's|/usr|/|' Makefile
|
||||
'';
|
||||
|
||||
installFlags = [
|
||||
"install"
|
||||
"install_systemd"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
cp usr/iscsistart $out/sbin/
|
||||
for f in $out/lib/systemd/system/*; do
|
||||
substituteInPlace $f --replace /sbin $out/bin
|
||||
done
|
||||
$out/sbin/iscsistart -v
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
sed -i "s|/sbin/iscsiadm|$out/bin/iscsiadm|" $out/bin/iscsi_fw_login
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit (nixosTests) iscsi-root iscsi-multipath-root; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A high performance, transport independent, multi-platform implementation of RFC3720";
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "https://www.open-iscsi.com";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cleverca22 zaninime ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue