inputs: pin nixpkgs-unstable

This commit is contained in:
Wroclaw 2025-01-12 21:54:47 +01:00
parent 75f5d7ee9d
commit 77ef7434f2
7 changed files with 35 additions and 28 deletions

View file

@ -0,0 +1,16 @@
{
unstableSource,
revision,
}: self: super:
let
version = builtins.readFile "${unstableSource}/lib/.version" + ".git." + builtins.substring 0 12 revision;
useUnstable = self.config.useUnstable or true;
in
import ./unstable-from-source.nix {
inherit unstableSource;
} self super // {
unstableVersion = self.lib.optionalString useUnstable version;
unstableRevision = self.lib.optionalString useUnstable revision;
}