Something went wrong. Try again.
forked from nix-community/nixvim
Something went wrong. Try again.
12345678910111213141516171819202122232425262728{ lib, writers,}:let inherit (builtins) all match attrNames ; inherit (lib) importJSON ;
lockFile = importJSON ../../flake.lock; nixpkgsLock = # Assert there is only one nixpkgs node assert all (node: match "nixpkgs_[0-9]+" node == null) (attrNames lockFile.nodes); lockFile.nodes.nixpkgs.original;
info = { inherit (lib.trivial) release; nixpkgs_rev = lib.trivial.revisionWithDefault (throw "nixpkgs revision not available"); unstable = lib.strings.hasSuffix "-unstable" nixpkgsLock.ref; };inwriters.writeTOML "version-info.toml" info