mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-05 18:59:42 +01:00
22 lines
763 B
Nix
22 lines
763 B
Nix
|
let
|
||
|
# NOTE: This is the only non-deterministic part of our system since we need a
|
||
|
# a starting point in order to be able to fetch the pinned `nixpkgs`. From
|
||
|
# that point forward our build is deterministic and pinned
|
||
|
#
|
||
|
# We only use this for the `fetchFromGitHub` utility so as long as that
|
||
|
# remains stable then we shouldn't have migration issues.
|
||
|
inherit (import <nixpkgs> { }) fetchFromGitHub;
|
||
|
|
||
|
# In order to update `nixpkgs.json` to a specific revision, run:
|
||
|
#
|
||
|
# ```bash
|
||
|
# $ nix-prefetch-git https://github.com/NixOS/nixpkgs.git "${REVISION}" > nixpkgs.json
|
||
|
# ```
|
||
|
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
|
||
|
in
|
||
|
fetchFromGitHub {
|
||
|
owner = "NixOS";
|
||
|
repo = "nixpkgs";
|
||
|
inherit (nixpkgs) rev sha256;
|
||
|
}
|