mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
mozillavpn: extract netfilter derivation for updateScript
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
b992338da0
commit
2b59e8e4a3
@ -30,17 +30,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
};
|
||||
patches = [ ];
|
||||
|
||||
netfilterGoModules =
|
||||
(buildGoModule {
|
||||
inherit (finalAttrs)
|
||||
pname
|
||||
version
|
||||
src
|
||||
patches
|
||||
;
|
||||
modRoot = "linux/netfilter";
|
||||
vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8=";
|
||||
}).goModules;
|
||||
netfilter = buildGoModule {
|
||||
pname = "${finalAttrs.pname}-netfilter";
|
||||
inherit (finalAttrs)
|
||||
version
|
||||
src
|
||||
patches
|
||||
;
|
||||
modRoot = "linux/netfilter";
|
||||
vendorHash = "sha256-Cmo0wnl0z5r1paaEf1MhCPbInWeoMhGjnxCxGh0cyO8=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit (finalAttrs) src patches;
|
||||
@ -83,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
substituteInPlace extension/CMakeLists.txt \
|
||||
--replace '/etc' "$out/etc"
|
||||
|
||||
ln -s '${finalAttrs.netfilterGoModules}' linux/netfilter/vendor
|
||||
ln -s '${finalAttrs.netfilter.goModules}' linux/netfilter/vendor
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user