]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
nix: Add derivation for novaboot-server
authorMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Dec 2020 07:15:09 +0000 (08:15 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Thu, 17 Dec 2020 08:49:22 +0000 (09:49 +0100)
default.nix

index da915455d7dee84825069d1b610158ea3027a7ae..0d3ac0f46e7625f449a1b94efdf962f3a6c4b2f3 100644 (file)
@@ -14,11 +14,22 @@ let
   };
   perlEnv = (perl.withPackages (p: [ p.Expect IO-Stty ]));
 in
-stdenv.mkDerivation {
-  name = "novaboot";
-  src = builtins.fetchGit { url = ./.; };
-  buildInputs = [ perlEnv rsync ];
-  installPhase = ''
+{
+  novaboot = stdenv.mkDerivation {
+    name = "novaboot";
+    src = builtins.fetchGit { url = ./.; };
+    buildInputs = [ perlEnv rsync ];
+    installPhase = ''
     make install DESTDIR=$out PREFIX=
   '';
+  };
+  novaboot-server = stdenv.mkDerivation {
+    name = "novaboot-server";
+    src = builtins.fetchGit { url = ./.; };
+    nativeBuildInputs = [ perl ];
+    buildInputs = [ rsync ];
+    installPhase = ''
+    make -C server install DESTDIR=$out PREFIX=
+  '';
+  };
 }