Cache nixpkgs
This commit is contained in:
parent
556fce37af
commit
ee53b4dc55
|
@ -17,7 +17,7 @@ steps:
|
||||||
NETLIFY_AUTH_TOKEN:
|
NETLIFY_AUTH_TOKEN:
|
||||||
from_secret: netlify_auth_token
|
from_secret: netlify_auth_token
|
||||||
commands:
|
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:
|
node:
|
||||||
nix: 1
|
nix: 1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let
|
let
|
||||||
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz") {};
|
pkgs = import ./nixpkgs.nix {};
|
||||||
|
|
||||||
# reproducible source
|
# reproducible source
|
||||||
gitignoreSrc = pkgs.fetchFromGitHub {
|
gitignoreSrc = pkgs.fetchFromGitHub {
|
||||||
|
|
4
nixpkgs.nix
Normal file
4
nixpkgs.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import (fetchTarball {
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/archive/24c9b05ac53e422f1af81a156f1fd58499eb27fb.tar.gz";
|
||||||
|
sha256 = "1aw5zxd91rzvvzqk8zi5qrnkjsgf4nv77pa3jbpsymhpwr0gj5i3";
|
||||||
|
})
|
Reference in a new issue