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 6e954f4..4ee0c65 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
             '';
         };