-
Notifications
You must be signed in to change notification settings - Fork 2
/
overlay.nix
90 lines (82 loc) · 2.94 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
final: prev: with final; let
tryUpstream = drv: attrs: builtins.trace "broken upstream ${drv.name}" (drv.overrideAttrs attrs).overrideAttrs (o: {
isBroken = isBroken drv;
});
#if (builtins.tryEval (isBroken drv)).success
#then (isBroken drv) # should fail and use our override
#else drv.overrideAttrs attrs;
in {
nixStore = builtins.trace "nixStore=/home_nfs/bguibertd/nix" "/home_nfs/bguibertd/nix";
nix = tryUpstream prev.nix (o: {
doCheck = false;
doInstallCheck=false;
patches = (o.patches or []) ++ [
../../pkgs/nix-dont-remove-lustre-xattr.patch
# dont apply
#../../pkgs/nix-sqlite-unix-dotfiles-for-nfs.patch
../../pkgs/nix-unshare.patch
];
});
#libuv = tryUpstream prev.libuv (attrs: {
# doCheck = false;
# doInstallCheck=false;
#});
go_bootstrap = tryUpstream prev.go_bootstrap (attrs: {
prePatch = attrs.prePatch + ''
sed -i '/TestChown/aif true \{ return\; \}' src/os/os_unix_test.go
'';
});
go_1_15 = tryUpstream prev.go_1_15 (attrs: {
prePatch = attrs.prePatch + ''
sed -i '/TestChown/aif true \{ return\; \}' src/os/os_unix_test.go
sed -i '/TestFileChown/aif true \{ return\; \}' src/os/os_unix_test.go
sed -i '/TestLchown/aif true \{ return\; \}' src/os/os_unix_test.go
'';
});
p11-kit = tryUpstream prev.p11-kit (attrs: {
enableParallelBuilding = false;
doCheck = false;
doInstallCheck=false;
});
jobs = prev.jobs._override (self: with self; {
admin_scripts_dir = "/home_nfs/script/admin";
#scheduler = prev.jobs.scheduler_slurm;
defaultJob = sbatchJob;
});
fetchannex = { file ? builtins.baseNameOf url
, repo ? "${builtins.getEnv "HOME"}/nur-packages/downloads"
, name ? builtins.baseNameOf url
, recursiveHash ? false
, sha256
, url
}: prev.requireFile {
inherit name sha256 url;
hashMode = if recursiveHash then "recursive" else "flat";
message = ''
Unfortunately, we cannot download file ${name} automatically.
either:
- go to ${url} to download it yourself
- get it to the git annexed repo ${repo}
and add it to the Nix store
nix-store --add-fixed sha256 ${repo}/${name}
'';
};
slurm = final.slurm_19_05_5;
pythonOverrides = prev.lib.composeOverlays [
(prev.pythonOverrides or (_:_: {}))
(python-self: python-super: {
pyslurm = python-super.pyslurm_19_05_0.override { slurm=final.slurm_19_05_5; };
annexremote = lib.upgradeOverride python-super.annexremote (o: rec {
version = "1.3.1";
# use fetchFromGitHub instead of fetchPypi because the test suite of
# the package is not included into the PyPI tarball
src = fetchFromGitHub {
rev = "v${version}";
owner = "Lykos153";
repo = "AnnexRemote";
sha256 = "sha256-CM9Xe6a/Bt0tWdqVDGAqtl5qqQYwvcbzKFj1xoLz0Hs=";
};
});
})
];
}