]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
nix: only install final qcc output, and install it into bin
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 3 Aug 2017 12:08:51 +0000 (22:08 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 3 Aug 2017 12:08:51 +0000 (22:08 +1000)
default.nix

index 6e954f4c013053d57d885f359309c6155effc678..4ee0c65ae485af1edf9d9cb4b3429f231ea6d5d2 100644 (file)
@@ -23,7 +23,7 @@ let
             ];
 
             env = {
-                QCC = "${gmqcc}/gmqcc";
+                QCC = "${gmqcc}/bin/gmqcc";
             };
 
             nativeBuildInputs = [
@@ -78,8 +78,8 @@ let
             src = ./gmqcc;
 
             installPhase = ''
-                mkdir $out
-                cp -r . $out
+                mkdir -p $out/bin
+                cp gmqcc $out/bin
             '';
         };