graphql-engine/nix/versions.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
388 B
Nix
Raw Normal View History

{ pkgs }:
let
versions = pkgs.lib.trivial.importJSON ../server/VERSIONS.json;
in
{
ensureVersion = package:
let expected = versions.${package.pname};
in
if expected == package.version
then package
else throw "Invalid version for package ${package.pname}: expected ${expected}, got ${package.version}";
nodejsVersion = pkgs.lib.strings.fileContents ../.nvmrc;
}