From d7d35b875ac3468b78eec3a8a2c8c5fcce4f38c5 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 15 Sep 2019 18:28:39 -0700 Subject: [PATCH] nixpkgs-pinned: fetch a tarball instead it's much faster --- pkgs/nixpkgs-pinned.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/nixpkgs-pinned.nix b/pkgs/nixpkgs-pinned.nix index 1ee64cd..bc10fd7 100644 --- a/pkgs/nixpkgs-pinned.nix +++ b/pkgs/nixpkgs-pinned.nix @@ -1,12 +1,7 @@ +let + fetch = rev: builtins.fetchTarball "https://github.com/nixos/nixpkgs-channels/archive/${rev}.tar.gz"; +in { - nixpkgs = builtins.fetchGit { - url = "https://github.com/nixos/nixpkgs-channels"; - ref = "nixos-19.03"; - rev = "e6ad5e75f3bfaab5e7b7f0f128bf13d534879e65"; - }; - nixpkgs-unstable = builtins.fetchGit { - url = "https://github.com/nixos/nixpkgs-channels"; - ref = "nixos-unstable"; - rev = "765a71f15025ce78024bae3dc4a92bd2be3a8fbf"; - }; + nixpkgs = fetch "e6ad5e75f3bfaab5e7b7f0f128bf13d534879e65"; + nixpkgs-unstable = fetch "765a71f15025ce78024bae3dc4a92bd2be3a8fbf"; }