mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-09-11 15:05:40 +03:00
test: use nixpkgs-unstable
flake input for nix-bitcoin pkgs
By using the `default` flake module for tests, `pkgsUnstable` in `pkgs/default.nix` gets passed the `nixpkgs-unstable` flake input instead of falling back to importing `nixpkgsPinned.nixpkgs-unstable`. For some use cases this prevents importing `nixpkgs-unstable` twice (once via the `nixpkgs-unstable` flake input, once via `import nixpkgsPinned.nixpkgs-unstable`).
This commit is contained in:
parent
88c2a1ce55
commit
afbd8a3cad
@ -26,7 +26,7 @@
|
|||||||
# "armv7l-linux"
|
# "armv7l-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
test = import ./test/tests.nix nixpkgs.lib;
|
test = import ./test/tests.nix nixpkgs.lib self.nixosModules.default;
|
||||||
in {
|
in {
|
||||||
lib = {
|
lib = {
|
||||||
mkNbPkgs = {
|
mkNbPkgs = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Integration tests, can be run without internet access.
|
# Integration tests, can be run without internet access.
|
||||||
|
|
||||||
lib:
|
lib: nixBitcoinModule:
|
||||||
let
|
let
|
||||||
# Included in all scenarios
|
# Included in all scenarios
|
||||||
baseConfig = { config, pkgs, ... }: with lib; let
|
baseConfig = { config, pkgs, ... }: with lib; let
|
||||||
@ -9,7 +9,7 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./lib/test-lib.nix
|
./lib/test-lib.nix
|
||||||
../modules/modules.nix
|
nixBitcoinModule
|
||||||
{
|
{
|
||||||
# Features required by the Python test suite
|
# Features required by the Python test suite
|
||||||
nix-bitcoin.secretsDir = "/secrets";
|
nix-bitcoin.secretsDir = "/secrets";
|
||||||
|
Loading…
Reference in New Issue
Block a user