From 409b58ccd7048f958878673f4d53ca713d929633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 16 Jun 2025 08:12:09 +0200 Subject: [PATCH] niv: pin nil to repo unstable version --- nix/configurations/vanadium.nix | 1 + nix/overlays/nil.nix | 8 ++++++++ nix/sources.json | 12 ++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 nix/overlays/nil.nix diff --git a/nix/configurations/vanadium.nix b/nix/configurations/vanadium.nix index 42baad8e..bc450019 100644 --- a/nix/configurations/vanadium.nix +++ b/nix/configurations/vanadium.nix @@ -42,6 +42,7 @@ in ../overlays/wired-notify.nix ../overlays/nix-tree.nix ../overlays/wallpapers.nix + ../overlays/nil.nix ../overlays/iosevka.nix ../packages/overlay.nix diff --git a/nix/overlays/nil.nix b/nix/overlays/nil.nix new file mode 100644 index 00000000..699af229 --- /dev/null +++ b/nix/overlays/nil.nix @@ -0,0 +1,8 @@ +# Run the one with my cool feature here for now +let + sources = import ../sources.nix; + inherit (sources) nil; +in + final: _: { + nil = (builtins.getFlake "github:${nil.owner}/${nil.repo}/${nil.rev}").packages.${final.system}.default; + } diff --git a/nix/sources.json b/nix/sources.json index bbddab61..d2662595 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -67,6 +67,18 @@ "rev": "cd2a9c028df820a83ca2807dc6c6e7abc3dfa7fc", "type": "git" }, + "nil": { + "branch": "main", + "description": "NIx Language server, an incremental analysis assistant for writing in Nix.", + "homepage": "", + "owner": "oxalica", + "repo": "nil", + "rev": "870a4b1b5f12004832206703ac15aa85c42c247b", + "sha256": "1xlbzv9495g2gx6nmnw79v5g9ajwzkl1qwlpkqwqzqz4380qnnxy", + "type": "tarball", + "url": "https://github.com/oxalica/nil/archive/870a4b1b5f12004832206703ac15aa85c42c247b.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "nix-tree": { "branch": "main", "description": "Interactively browse dependency graphs of Nix derivations.",