blob: 1e7c705c0dfd0389cb745c65af819ceaf7418efa (
plain) (
blame)
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
|
{
fetchpatch,
lib,
mkDerivation,
stdenv,
}:
mkDerivation {
path = "share/mk";
noCC = true;
buildInputs = [ ];
nativeBuildInputs = [ ];
dontBuild = true;
patches = [
(fetchpatch {
url = "https://marc.info/?l=openbsd-tech&m=171575284906018&q=raw";
sha256 = "sha256-bigxJGbaf9mCmFXxLVzQpnUUaEMMDfF3eZkTXVzd6B8=";
})
./netbsd-make-sinclude.patch
];
postPatch = ''
sed -i -E \
-e 's|/usr/lib|\$\{LIBDIR\}|' \
share/mk/bsd.prog.mk
'';
installPhase = ''
cp -r share/mk $out
'';
meta.platforms = lib.platforms.unix;
}
|