NUR: fix eval
locally, at least: hopefully this fixes the CI jobs as well
This commit is contained in:
@@ -20,7 +20,10 @@
|
|||||||
let
|
let
|
||||||
linux = linux_latest;
|
linux = linux_latest;
|
||||||
patches = import ./patches.nix { inherit fetchFromGitHub lib newScope; };
|
patches = import ./patches.nix { inherit fetchFromGitHub lib newScope; };
|
||||||
|
nullPatch = {
|
||||||
|
name = "null-patch";
|
||||||
|
patch = null;
|
||||||
|
};
|
||||||
in
|
in
|
||||||
linux.override {
|
linux.override {
|
||||||
# inherit (linux_latest) src version modDirVersion;
|
# inherit (linux_latest) src version modDirVersion;
|
||||||
@@ -346,7 +349,7 @@ linux.override {
|
|||||||
# notably, it defines several of the voltage regulators, one of which is required to power the modem.
|
# notably, it defines several of the voltage regulators, one of which is required to power the modem.
|
||||||
byName."arm64-dts-sun50i-a64-pinephone-Add-Type-C-support-for-all-PP-va"
|
byName."arm64-dts-sun50i-a64-pinephone-Add-Type-C-support-for-all-PP-va"
|
||||||
patches.sane.vbat-bb-always-on #< slight tweak to `Add-Type-C-support...` to ensure power to the modem
|
patches.sane.vbat-bb-always-on #< slight tweak to `Add-Type-C-support...` to ensure power to the modem
|
||||||
(if withModemPower then byName."arm64-dts-sun50i-a64-pinephone-Add-modem-power-manager" else { patch = null; })
|
(if withModemPower then byName."arm64-dts-sun50i-a64-pinephone-Add-modem-power-manager" else nullPatch)
|
||||||
# byName."arm64-dts-sun50i-a64-pinephone-Fix-BH-modem-manager-behavior"
|
# byName."arm64-dts-sun50i-a64-pinephone-Fix-BH-modem-manager-behavior"
|
||||||
# byName."arm64-dts-sun50i-a64-pinephone-Add-detailed-OCV-to-capactiy-con"
|
# byName."arm64-dts-sun50i-a64-pinephone-Add-detailed-OCV-to-capactiy-con"
|
||||||
# byName."arm64-dts-sun50i-a64-pinephone-Shorten-post-power-on-delay-on-m"
|
# byName."arm64-dts-sun50i-a64-pinephone-Shorten-post-power-on-delay-on-m"
|
||||||
@@ -422,7 +425,7 @@ linux.override {
|
|||||||
# # byName."arm64-dts-allwinner-h6-Add-SCPI-protocol"
|
# # byName."arm64-dts-allwinner-h6-Add-SCPI-protocol"
|
||||||
# # byName."ARM-dts-sun8i-a83t-tbs-a711-Give-Linux-more-privileges-over-SCP"
|
# # byName."ARM-dts-sun8i-a83t-tbs-a711-Give-Linux-more-privileges-over-SCP"
|
||||||
# # byName."rtc-sun6i-Allow-RTC-wakeup-after-shutdown"
|
# # byName."rtc-sun6i-Allow-RTC-wakeup-after-shutdown"
|
||||||
(if withModemPower then byName."misc-modem-power-Power-manager-for-modems" else { patch = null; })
|
(if withModemPower then byName."misc-modem-power-Power-manager-for-modems" else nullPatch)
|
||||||
# # byName."ARM-dts-sun8i-a83t-Add-missing-GPU-trip-point"
|
# # byName."ARM-dts-sun8i-a83t-Add-missing-GPU-trip-point"
|
||||||
# # byName."arm64-dts-sun50i-h5-Add-missing-GPU-trip-point"
|
# # byName."arm64-dts-sun50i-h5-Add-missing-GPU-trip-point"
|
||||||
# byName."arm64-dts-sun50i-a64-Add-missing-trip-points-for-GPU"
|
# byName."arm64-dts-sun50i-a64-Add-missing-trip-points-for-GPU"
|
||||||
|
@@ -1,13 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
NIX_FILES_TOP=/home/colin/nixos
|
NIX_FILES_TOP=/home/colin/nixos
|
||||||
|
nixpkgs=$(nix-store --realize $(nix-instantiate -A nixpkgs-bootstrap.master.src))
|
||||||
|
|
||||||
cd $NIX_FILES_TOP/integrations/nur
|
cd $NIX_FILES_TOP/integrations/nur
|
||||||
# TODO: should include `-I nixpkgs=</path/to/an/unpatched/nixpkgs>`
|
|
||||||
NIX_PATH= NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-env -f . -qa \* --meta --xml \
|
NIX_PATH= NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-env -f . -qa \* --meta --xml \
|
||||||
--allowed-uris https://static.rust-lang.org \
|
--allowed-uris https://static.rust-lang.org \
|
||||||
--option restrict-eval true \
|
--option restrict-eval true \
|
||||||
--option allow-import-from-derivation true \
|
--option allow-import-from-derivation true \
|
||||||
--drv-path --show-trace \
|
--drv-path --show-trace \
|
||||||
|
-I nixpkgs=$nixpkgs \
|
||||||
-I ../../ \
|
-I ../../ \
|
||||||
"$@" \
|
"$@" \
|
||||||
| tee # tee to prevent interactive mode
|
| tee # tee to prevent interactive mode
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user