summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-09-06 19:18:18 -0400
committerMica White <botahamec@outlook.com>2026-09-06 19:18:18 -0400
commitd7663c0835614c5511e0f329174bada9fff4be48 (patch)
tree923d5074ac4484e12cf83c7841e7776922ef433b
parentd4cf94230b4d81338f1580e306fee1955c63f0f1 (diff)
Create a flakearborium
-rw-r--r--default.nix8
-rw-r--r--flake.lock27
-rw-r--r--flake.nix13
l---------result1
4 files changed, 49 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..da56fef
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,8 @@
+{ rustPlatform, lib }:
+
+rustPlatform.buildRustPackage {
+ name = "cgit-syntax-highlighting";
+ src = ./.;
+ cargoHash = "sha256-5Omrjm4yy7OdIP4Mt5eRSt5eJHR4IYzNGBW9rf37/b8=";
+}
+
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..a3545a8
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1788614874,
+ "narHash": "sha256-7QYjT2vHLuX9Z1pdxHXDKCbh1CR3D/2rywB9Tx0MPRg=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "c043004d1c6985732bcc1cbc5a9c9aecbbb4e0f0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..ba9a573
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,13 @@
+{
+ description = "Fast syntax highlighting for cgit";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ };
+
+ outputs = { self, nixpkgs }: let
+ pkgs = nixpkgs.legacyPackages."x86_64-linux";
+ in {
+ packages."x86_64-linux".default = pkgs.callPackage ./default.nix { };
+ };
+}
diff --git a/result b/result
new file mode 120000
index 0000000..330ef44
--- /dev/null
+++ b/result
@@ -0,0 +1 @@
+/nix/store/5bfj8kj1ybig922c0kmhcqzpr2xjzwxa-cgit-syntax-highlighting \ No newline at end of file