-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnovaboot.nix
37 lines (37 loc) · 869 Bytes
/
novaboot.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
{
self,
nixpkgs ? <nixpkgs>,
pkgs ? import nixpkgs {},
otherPerlPackages ? []
}:
with pkgs;
let
IO-Stty = perlPackages.buildPerlPackage {
pname = "IO-Stty";
version = "0.04";
src = fetchurl {
url = "mirror://cpan/authors/id/T/TO/TODDR/IO-Stty-0.04.tar.gz";
sha256 = "1hjicqy50mgbippn310k4zclr9ksz05yyg81za3q4gb9m3qhk5aw";
};
};
perlEnv = (perl.withPackages (p: [ p.Expect IO-Stty ] ++ otherPerlPackages));
in
{
novaboot = stdenv.mkDerivation {
name = "novaboot";
src = self;
buildInputs = [ perlEnv rsync ];
installPhase = ''
make install DESTDIR=$out PREFIX=
'';
};
novaboot-server = stdenv.mkDerivation {
name = "novaboot-server";
src = self;
nativeBuildInputs = [ perl ];
buildInputs = [ rsync ];
installPhase = ''
make -C server install DESTDIR=$out PREFIX=
'';
};
}