mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
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;
|
||
|
}
|