mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
1ffc19367d
We don't need to hide it. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6255 GitOrigin-RevId: 9b46511c6b274dd7e8e52ee74644dc86c7d75872
15 lines
388 B
Nix
15 lines
388 B
Nix
{ 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;
|
|
}
|