-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathoverlay.nix
37 lines (32 loc) · 1.02 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
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: {
inherit version;
src = final.nix-filter {
root = ./.;
include = [
"pyproject.toml"
"unblob"
"tests"
"README.md"
];
};
# remove this when packaging changes are upstreamed
build-system = with final.python3.pkgs; [ hatchling ];
# override disabling of 'test_all_handlers[filesystem.extfs]' from upstream
pytestFlagsArray = [
"--no-cov"
];
});
}