Browse Source

Add initial contents

Samuel W. Flint 3 years ago
parent
commit
c3d943d61d
6 changed files with 101 additions and 0 deletions
  1. 1 0
      .envrc
  2. 5 0
      .gitignore
  3. 4 0
      default.nix
  4. 42 0
      flake.lock
  5. 45 0
      flake.nix
  6. 4 0
      shell.nix

+ 1 - 0
.envrc

@@ -0,0 +1 @@
+use flake

+ 5 - 0
.gitignore

@@ -49,3 +49,8 @@ flycheck_*.el
 # projectiles files
 .projectile
 
+
+
+#Added by cargo
+
+/target

+ 4 - 0
default.nix

@@ -0,0 +1,4 @@
+(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
+  src = builtins.fetchGit ./.;
+}
+).defaultNix

+ 42 - 0
flake.lock

@@ -0,0 +1,42 @@
+{
+  "nodes": {
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1601413715,
+        "narHash": "sha256-g3/3kdVN34jmsxPJzRZb6Qk9Wd9dTmsf1jnTTdjFZjg=",
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "rev": "9a43f55bb02dc76b2f977dca0c75997111d0b1f0",
+        "type": "github"
+      },
+      "original": {
+        "owner": "NixOS",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "root": {
+      "inputs": {
+        "nixpkgs": "nixpkgs",
+        "utils": "utils"
+      }
+    },
+    "utils": {
+      "locked": {
+        "lastModified": 1601282935,
+        "narHash": "sha256-WQAFV6sGGQxrRs3a+/Yj9xUYvhTpukQJIcMbIi7LCJ4=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "588973065fce51f4763287f0fda87a174d78bf48",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    }
+  },
+  "root": "root",
+  "version": 7
+}

+ 45 - 0
flake.nix

@@ -0,0 +1,45 @@
+{
+  description = "A custom synchronization tool";
+
+  inputs = {
+    nixpkgs.url = "github:NixOS/nixpkgs";
+    utils.url = "github:numtide/flake-utils";
+  };
+
+  outputs = { self, nixpkgs, utils }:
+    utils.lib.eachDefaultSystem (system:
+      let
+        pkgs = import nixpkgs { inherit system; };
+      in
+      rec {
+        packages = rec {
+
+          # sync-it = pkgs.rustPlatform.buildRustPackage rec {
+          #   name = "sync-it";
+          #   version = "0.0.1";
+
+          #   cargoSha256 = "XXX";
+
+          #   meta = with pkgs.stdenv.lib; {
+          #     description = "A simple, customizable synchronization tool.";
+          #     license = licenses.gpl3OrLater;
+          #     maintainers = with maintainers; [ swflint ];
+          #   };
+          # };
+
+          devEnvironment = pkgs.mkShell {
+            name = "sync-it-dev-environment";
+
+            buildInputs = [
+              pkgs.pre-commit
+              pkgs.rustc
+              pkgs.cargo
+            ];
+          };
+
+        };
+
+        devShell = packages.devEnvironment;
+      }
+    );
+}

+ 4 - 0
shell.nix

@@ -0,0 +1,4 @@
+(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
+  src = builtins.fetchGit ./.;
+}
+).shellNix