Home

git-age @main - refs - log -
-
https://git.jolheiser.com/git-age.git
git-crypt, but with age
tree log patch
feat: nix flake Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmVSy/EACgkQuFOtpdp7 v3pN5A/+PGvJ8Qsbwnsh0yqiGqODAV3n2f6DjKHKlkMRNm5Xzu5KkqI5L4NUc5dg MWUmoX452KZlE9DuWz8wSiuX34tSDNNCdtyLiwH16i+MGjVNF3M2hhNWVL0nMXws aI1ZmzaqxLdtLnTT6Amf9z0yjOUZAiUmJPZZ8eH5dbH/7hCgeIdkwWugIML74Y8S a4PtKfRxHFsJfyF82hE7POQ5LpsvAovl+/tVmDccXWfbbkiPansBnDNDL0XTUpeP e/J4U7bj+f2tpdg7Tvbb2D+0k7QDz4uFm5Z1q82YbQauOq1kcTZo9eekAv7H/3wj m0Te7v4kwQqTxKTujj8Yv95NWhNUL16kRxn4HasIB4VE1VBRKYhkzyaXwb8pHGHz bO2hHQYQbDWgQCImJHQFLf01yg6GpCXyqLpt1DCrcukfavzZ59jme0SteAd2kfES kthIY4yCQy04nx31/UyAKQbnFcJPWDStOltYYNULEXcS0f3MlTEpi2G8eLVig7Kv KPxKw/4qKeYEbAtYePbv7jNjnfXvcCBE6C3s4a9BKD/6xB4cR4sN/kgYmwt7f6qa 0jYObVg0KyMa/ardp2H7ZDFgSVIeJaQ75LMCORYig1IPeYRqavGI5t6m5m4nr47x i1Y0WyWNDkZhm4CvNjcJ5emO78p0fCruSBkJpl9bxFBxLYEfoMs= =YImn -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 105 additions(+), 0 deletions(-)
I flake.lock
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000000000000000000000000000000000000..8a9dddb983e56a792289ddb5fcdb87f39c99f807
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,60 @@
+{
+  "nodes": {
+    "flake-utils": {
+      "inputs": {
+        "systems": "systems"
+      },
+      "locked": {
+        "lastModified": 1694529238,
+        "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    },
+    "nixpkgs": {
+      "locked": {
+        "lastModified": 1699923567,
+        "narHash": "sha256-oVMICs/4eZdIkbZvKs/JZe0SwrON/2d5veuwhBOrnmE=",
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "rev": "5d6c73222280b7f69109dfa5c9572f4b74c3453c",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "root": {
+      "inputs": {
+        "flake-utils": "flake-utils",
+        "nixpkgs": "nixpkgs"
+      }
+    },
+    "systems": {
+      "locked": {
+        "lastModified": 1681028828,
+        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+        "owner": "nix-systems",
+        "repo": "default",
+        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-systems",
+        "repo": "default",
+        "type": "github"
+      }
+    }
+  },
+  "root": "root",
+  "version": 7
+}
I flake.nix
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000000000000000000000000000000000000..567f4b5525f6ee063c60da1f8e075763fd8399d8
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,45 @@
+{
+  description = "git-age";
+
+  inputs = {
+    nixpkgs.url = "github:nixos/nixpkgs";
+    flake-utils.url = "github:numtide/flake-utils";
+  };
+
+  outputs = {
+    self,
+    flake-utils,
+    nixpkgs,
+  }:
+    flake-utils.lib.eachDefaultSystem (
+      system: let
+        pkgs = nixpkgs.legacyPackages.${system};
+        git-age = pkgs.buildGoModule rec {
+          pname = "git-age";
+          version = "0.0.3";
+
+          src = ./.;
+
+          vendorHash = "sha256-W+WDMGyKQaHSsPLg1sVsHCmu087Cu0y7hq0f4uaVDqA=";
+
+          ldflags = [
+            "-s"
+            "-w"
+            "-X=go.jolheiser.com/git-age/cmd.version=${version}"
+          ];
+
+          doCheck = false;
+
+          meta = with pkgs.lib; {
+            description = "";
+            homepage = "https://git.jojodev.com/jolheiser/git-age";
+            license = licenses.mpl20;
+            maintainers = with maintainers; [jolheiser];
+            mainProgram = "git-age";
+          };
+        };
+      in {
+        packages.default = git-age;
+      }
+    );
+}