graphql-engine/nix/versions.nix
Samir Talwar 1ffc19367d Push the Nix dependency management configuration to the OSS repository.
We don't need to hide it.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6255
GitOrigin-RevId: 9b46511c6b274dd7e8e52ee74644dc86c7d75872
2022-10-11 15:33:22 +00:00

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;
}