summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Mikol <hi@codymikol.com>2024-08-30 20:41:09 -0400
committerCody Mikol <hi@codymikol.com>2024-08-30 20:41:09 -0400
commitc6127e4f2e45ca817690afcded0069ed3c2d0e70 (patch)
treea8c55f1a713cbb26d6d2f335c03e6034c6e07191
parent6db374fdcf49bd75197aa44846445aa89936d492 (diff)
feat(nix): add a nix flake
nix flakes allow developers using NixOS or the nix package manager to quickly set up a working development environment with the correct dependencies. Fixes N/A
-rw-r--r--flake.lock61
-rw-r--r--flake.nix17
2 files changed, 78 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 000000000..081079dfa
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1710146030,
+ "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1725036679,
+ "narHash": "sha256-Ri79ZOEcZJFLr6+LgS3A0WYyroL/PqEuO+lI7u+G2tE=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "dac9db29e0e7ff2071ccc47b720aaffc3e74b504",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "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
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 000000000..41a92917b
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,17 @@
+{
+ description = "YaCy -- distributed search engine";
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ inputs.flake-utils.url = "github:numtide/flake-utils";
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ devShells.default = pkgs.mkShell {
+ packages = [
+ pkgs.ant
+ pkgs.temurin-bin-11
+ ];
+ };
+ });
+}