treewide: hack/nixpkgs, which uses _our_ nixpkgs, not actual nixpkgs
This commit is contained in:
parent
0500d97b67
commit
b16bfb93ce
3 changed files with 8 additions and 3 deletions
5
hack/nixpkgs/default.nix
Normal file
5
hack/nixpkgs/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ system ? builtins.currentSystem }@args:
|
||||
let
|
||||
depot = import ../.. args;
|
||||
in
|
||||
depot.pkgs
|
|
@ -65,7 +65,7 @@ let
|
|||
only.refs = [ "branch/default" ];
|
||||
|
||||
script = ''
|
||||
export NIX_PATH=nixpkgs=$(readlink -f third_party/nixpkgs)
|
||||
export NIX_PATH=nixpkgs=$(readlink -f hack/nixpkgs)
|
||||
$(nix-build -A nix.pkgs.flipperzero-firmware.upload)/bin/upload-f0
|
||||
'';
|
||||
};
|
||||
|
@ -76,7 +76,7 @@ let
|
|||
only.refs = [ "branch/default" ];
|
||||
|
||||
script = ''
|
||||
export NIX_PATH=nixpkgs=$(readlink -f third_party/nixpkgs)
|
||||
export NIX_PATH=nixpkgs=$(readlink -f hack/nixpkgs)
|
||||
cd web/lukegbcom
|
||||
./deploy.sh
|
||||
'';
|
||||
|
|
|
@ -115,7 +115,7 @@ in
|
|||
|
||||
nix = {
|
||||
package = pkgs.nix_2_3; # Use a working nix.
|
||||
nixPath = [ "depot=/home/lukegb/depot/" "nixpkgs=/home/lukegb/depot/third_party/nixpkgs/" ];
|
||||
nixPath = [ "depot=/home/lukegb/depot/" "nixpkgs=/home/lukegb/depot/hack/nixpkgs/" ];
|
||||
settings = {
|
||||
trusted-users = [ "root" "@wheel" "deployer" ];
|
||||
substituters = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ];
|
||||
|
|
Loading…
Reference in a new issue