GitLab maintenance scheduled for Today, 2019-09-24, from 12:00 to 13:00 CT - Services will be unavailable during this time.

pin.nix 245 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
{
2
  jsonpath,
3
  depset ? {},
Valentin Reis's avatar
Valentin Reis committed
4
  hostPkgs ? import <nixpkgs> {}
Valentin Reis's avatar
Valentin Reis committed
5
}:
Valentin Reis's avatar
.  
Valentin Reis committed
6 7
  let
    pinnedVersion = hostPkgs.lib.importJSON jsonpath;
8 9
    pinnedPkgs = hostPkgs.fetchgit {
      inherit (pinnedVersion) url rev sha256;
Valentin Reis's avatar
.  
Valentin Reis committed
10
    };
11
  in import pinnedPkgs depset