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
29
pkgs/os-specific/linux/jool/cli.nix
Normal file
29
pkgs/os-specific/linux/jool/cli.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libnl, iptables }:
|
||||
|
||||
let
|
||||
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "jool-cli";
|
||||
version = sourceAttrs.version;
|
||||
|
||||
src = sourceAttrs.src;
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
buildInputs = [ libnl iptables ];
|
||||
|
||||
makeFlags = [ "-C" "src/usr" ];
|
||||
|
||||
prePatch = ''
|
||||
sed -e 's%^XTABLES_SO_DIR = .*%XTABLES_SO_DIR = '"$out"'/lib/xtables%g' -i src/usr/iptables/Makefile
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.jool.mx/";
|
||||
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
||||
33
pkgs/os-specific/linux/jool/default.nix
Normal file
33
pkgs/os-specific/linux/jool/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, kernel }:
|
||||
|
||||
let
|
||||
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "jool-${sourceAttrs.version}-${kernel.version}";
|
||||
|
||||
src = sourceAttrs.src;
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
prePatch = ''
|
||||
sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i src/mod/*/Makefile
|
||||
'';
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"-C src/mod"
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
|
||||
installTargets = "modules_install";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.jool.mx/";
|
||||
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - kernel modules";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
};
|
||||
}
|
||||
11
pkgs/os-specific/linux/jool/source.nix
Normal file
11
pkgs/os-specific/linux/jool/source.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ fetchFromGitHub }:
|
||||
|
||||
rec {
|
||||
version = "4.1.7";
|
||||
src = fetchFromGitHub {
|
||||
owner = "NICMx";
|
||||
repo = "Jool";
|
||||
rev = "v${version}";
|
||||
sha256 = "08z23mi6xkr6zzp0hzh1cppvl2y0177s0lnpxqbpy8jiii5fxw8f";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue