1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-27 05:19:44 +01:00

Pin a known good Nixpkgs revision

This revision is used for unqualified `nix-build` uses.

For the previous behaviour, use:

```
nix-build --arg 'pkgs' 'import <nixpkgs> {}' -A kernel_latest
```

Build was tested through cross-compilation on an x86_64 machine.
This commit is contained in:
Samuel Dionne-Riel 2021-11-01 19:37:11 -04:00
parent 7df87f4f3b
commit b7200b7461
2 changed files with 10 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? (import ./pkgs.nix) {} }:
let pkgs' = pkgs; in
let

9
pkgs.nix Normal file
View file

@ -0,0 +1,9 @@
let
sha256 = "0j8pdr9ymk7a2p8pamcbq2rbhlcg923i6abdmdm6496973s5gb34";
rev = "e544ee88fa4590df75e221e645a03fe157a99e5b";
in
builtins.trace "(Using pinned Nixpkgs at ${rev})"
import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
inherit sha256;
})