Home

tmpl @main - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tree log patch
feat: nix (#31) Reviewed-on: https://git.jojodev.com/jolheiser/tmpl/pulls/31 Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 56 additions(+), 0 deletions(-)
I flake.lock
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000000000000000000000000000000000000..7ee1e8d362384a72ee553f15b5bc3df6a8bf7383
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,26 @@
+{
+  "nodes": {
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1703042410,
+        "narHash": "sha256-LKhDz1Lxp+QgL6UpuPCLkMAx6JvabwwyIoeoQd1A7Sc=",
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "rev": "7dbe085eb6870dc0b729254c987f626c2a6e71d7",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "root": {
+      "inputs": {
+        "nixpkgs": "nixpkgs"
+      }
+    }
+  },
+  "root": "root",
+  "version": 7
+}
I flake.nix
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000000000000000000000000000000000000..335567671849880f371015f1fce81947f075b954
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,30 @@
+{
+  description = "tmpl";
+
+  inputs.nixpkgs.url = "github:nixos/nixpkgs";
+
+  outputs = {
+    self,
+    nixpkgs,
+  }: let
+    pkgs = nixpkgs.legacyPackages.x86_64-linux;
+    tmpl = pkgs.buildGoModule {
+      pname = "tmpl";
+      version = "0.4.0";
+
+      src = ./.;
+
+      vendorHash = "sha256-QNwzHC4fHLAhshOplKmMjRYa9sHNjBLdfBgANbs/iKk=";
+
+      meta = with pkgs.lib; {
+        description = "";
+        homepage = "https://git.jojodev.com/jolheiser/tmpl";
+        license = licenses.mit;
+        maintainers = with maintainers; [jolheiser];
+        mainProgram = "tmpl";
+      };
+    };
+  in {
+    packages.x86_64-linux.default = tmpl;
+  };
+}