mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
8a61802ca0
GitOrigin-RevId: 3f6efeda389647b2fd7817b15e2952f3a562dbd5
17 lines
450 B
Nix
17 lines
450 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}";
|
|
|
|
ghcVersion = pkgs.lib.strings.fileContents ../.ghcversion;
|
|
|
|
nodejsVersion = pkgs.lib.strings.fileContents ../.nvmrc;
|
|
}
|