-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
/
package.nix
39 lines (32 loc) · 860 Bytes
/
package.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
{ lib
, stdenv
, fetchFromSavannah
, m2libc
, which
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mescc-tools";
version = "1.5.1";
src = fetchFromSavannah {
repo = "mescc-tools";
rev = "Release_${finalAttrs.version}";
hash = "sha256-jFDrmzsjKEQKOKlsch1ceWtzUhoJAJVyHjXGVhjE9/U=";
};
# Don't use vendored M2libc
postPatch = ''
rmdir M2libc
ln -s ${m2libc}/include/M2libc M2libc
'';
enableParallelBuilding = true;
doCheck = true;
checkTarget = "test";
nativeCheckInputs = [ which ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Collection of tools written for use in bootstrapping";
homepage = "https://savannah.nongnu.org/projects/mescc-tools";
license = licenses.gpl3Only;
maintainers = teams.minimal-bootstrap.members;
inherit (m2libc.meta) platforms;
};
})