summaryrefslogtreecommitdiff
path: root/flake.nix
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 /flake.nix
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
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 17 insertions, 0 deletions
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
+ ];
+ };
+ });
+}