Home

go-spectre @main - refs - log -
-
https://git.jolheiser.com/go-spectre.git
Go implementation for spectre/masterpassword
tree log patch
feat: nix Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQE0lanH7RWWG9mARcwTMtzE2JbseYPjTgKi5i0/sb7vcVxf0e6l7eFuXKbEhm3bMJg 06UQRLbSR3xU1x8AANlw8= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
1 month ago
3 changed files, 79 additions(+), 0 deletions(-)
I flake.lock
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000000000000000000000000000000000000..c36c036491b0a8e778e5c7164f65d32c93d4cb53
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+  "nodes": {
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1726937504,
+        "narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=",
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "rev": "9357f4f23713673f310988025d9dc261c20e70c6",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nixos",
+        "ref": "nixos-unstable",
+        "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..f587380bb7a756bcd78a46667016d3b815d4d323
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,51 @@
+{
+  description = "spectre";
+  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+  outputs =
+    { self, nixpkgs, ... }:
+    let
+      systems = [
+        "aarch64-darwin"
+        "aarch64-linux"
+        "x86_64-darwin"
+        "x86_64-linux"
+      ];
+      inherit (nixpkgs) lib;
+      forEachSystem =
+        f:
+        (lib.listToAttrs (
+          map (system: {
+            name = system;
+            value = f {
+              inherit system;
+              pkgs = import nixpkgs { inherit system; };
+            };
+          }) systems
+        ));
+    in
+    {
+      packages = forEachSystem (
+        { pkgs, system }:
+        {
+          default = self.packages.${system}.spectre;
+          spectre = pkgs.buildGoModule rec {
+            pname = "spectre";
+            version = self.rev or "dev";
+            src = pkgs.nix-gitignore.gitignoreSource [ ] (
+              builtins.path {
+                name = pname;
+                path = ./.;
+              }
+            );
+            subPackages = [ "cmd/spectre" ];
+            vendorHash = nixpkgs.lib.fileContents ./go.mod.sri;
+            meta = {
+              description = "Spectre CLI";
+              homepage = "https://git.jolheiser.com/go-spectre";
+              mainProgram = "spectre";
+            };
+          };
+        }
+      );
+    };
+}
I go.mod.sri
diff --git a/go.mod.sri b/go.mod.sri
new file mode 100644
index 0000000000000000000000000000000000000000..3c89767b5c2549ebaaca61c034575aab189e7cc9
--- /dev/null
+++ b/go.mod.sri
@@ -0,0 +1 @@
+sha256-rZnaY4ma50ry5i9sVyuosgVXWke0+JsuBYUgHv2qglM=
\ No newline at end of file