-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathoverlay.nix
47 lines (41 loc) · 1.23 KB
/
overlay.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
final: prev:
{
# https://github.com/tytso/e2fsprogs/issues/152
e2fsprogs-nofortify = prev.e2fsprogs.overrideAttrs (super: {
pname = "e2fsprogs-nofortify";
hardeningDisable = (super.hardeningDisable or [ ]) ++ [ "fortify3" ];
nativeCheckInputs = (super.nativeCheckInputs or [ ]) ++ [ final.which ];
});
unblob =
let
pyproject_toml = (builtins.fromTOML (builtins.readFile ./pyproject.toml));
version = pyproject_toml.project.version;
in
(prev.unblob.override { e2fsprogs = final.e2fsprogs-nofortify; }).overridePythonAttrs (super: rec {
inherit version;
src = final.nix-filter {
root = ./.;
include = [
"Cargo.lock"
"Cargo.toml"
"pyproject.toml"
"python"
"rust"
"tests"
"README.md"
];
};
# remove this when packaging changes are upstreamed
cargoDeps = final.rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = with final.rustPlatform; [
cargoSetupHook
maturinBuildHook
];
# override disabling of 'test_all_handlers[filesystem.extfs]' from upstream
pytestFlagsArray = [
"--no-cov"
];
});
}