-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathoverlay.nix
33 lines (29 loc) · 908 Bytes
/
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
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.tool.poetry.version;
in
(prev.unblob.override { e2fsprogs = final.e2fsprogs-nofortify; }).overridePythonAttrs (super: {
inherit version;
src = final.nix-filter {
root = ./.;
include = [
"pyproject.toml"
"unblob"
"tests"
];
};
# override disabling of 'test_all_handlers[filesystem.extfs]' from upstream
pytestFlagsArray = [
"--no-cov"
];
});
}