Cache nixpkgs

This commit is contained in:
Simon Bruder 2020-10-25 10:19:44 +01:00
parent 556fce37af
commit ee53b4dc55
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 6 additions and 2 deletions

View file

@ -17,7 +17,7 @@ steps:
NETLIFY_AUTH_TOKEN:
from_secret: netlify_auth_token
commands:
- nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz -p netlify-cli --run "netlify deploy --prod -d $(readlink -f result)"
- nix-shell -I nixpkgs=./nixpkgs.nix -p netlify-cli --run "netlify deploy --prod -d $(readlink -f result)"
node:
nix: 1

View file

@ -1,5 +1,5 @@
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz") {};
pkgs = import ./nixpkgs.nix {};
# reproducible source
gitignoreSrc = pkgs.fetchFromGitHub {

4
nixpkgs.nix Normal file
View file

@ -0,0 +1,4 @@
import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz";
sha256 = "1aw5zxd91rzvvzqk8zi5qrnkjsgf4nv77pa3jbpsymhpwr0gj5i3";
})