Parcourir la source

Enable building of application

Samuel W. Flint il y a 4 ans
Parent
commit
04e4c8b8c1
1 fichiers modifiés avec 13 ajouts et 10 suppressions
  1. 13 10
      flake.nix

+ 13 - 10
flake.nix

@@ -14,18 +14,20 @@
       rec {
         packages = rec {
 
-          # sync-it = pkgs.rustPlatform.buildRustPackage rec {
-          #   name = "sync-it";
-          #   version = "0.0.1";
+          sync-it = pkgs.rustPlatform.buildRustPackage rec {
+            name = "sync-it";
+            version = "0.0.1";
 
-          #   cargoSha256 = "XXX";
+            src = ./.;
 
-          #   meta = with pkgs.stdenv.lib; {
-          #     description = "A simple, customizable synchronization tool.";
-          #     license = licenses.gpl3OrLater;
-          #     maintainers = with maintainers; [ swflint ];
-          #   };
-          # };
+            cargoSha256 = "HdlX0U0ikiKLGPLqN8afagrgr37BfaGfEibquZDhvbg=";
+
+            meta = with pkgs.stdenv.lib; {
+              description = "A simple, customizable synchronization tool.";
+              license = licenses.gpl3Plus;
+              maintainers = with maintainers; [ swflint ];
+            };
+          };
 
           devEnvironment = pkgs.mkShell {
             name = "sync-it-dev-environment";
@@ -41,6 +43,7 @@
 
         };
 
+        defaultPackage = packages.sync-it;
         devShell = packages.devEnvironment;
       }
     );