1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 08:09:45 +01:00
Commit graph

6 commits

Author SHA1 Message Date
Robert Helgesson
0992b38e5e
tests: add mkStubPackage in Nixpkgs overlay 2024-03-03 06:56:05 +01:00
Robert Helgesson
baf222f2fb
tests: add mainProgram to stub packages
This is to avoid warnings being printed while tests are run.
2023-09-24 09:48:46 +02:00
Naïm Favier
69bdd6de50
tests/stubs: inherit default versions from pkgs (#4069)
* tests/stubs: inherit default versions from pkgs

* tests/browserpass: temporarily disable on darwin

The package currently fails to evaluate on darwin due to a nixpkgs
problem: https://github.com/NixOS/nixpkgs/pull/236258#issuecomment-1583450593
2023-06-09 00:59:06 +02:00
Naïm Favier
221056c59f
tests: fix getOutput on stubs
Setting `outputSpecified` prevents `getOutput` from descending into
outputs, which don't have an overridden `outPath`.

Additionally, use `__spliced` to permit derivations to use the dummy as
an input.
2023-06-04 09:15:14 +02:00
amesgen
78f964347c
tests.stubs: set pname 2022-08-12 20:49:49 +02:00
Robert Helgesson
cb09a968e9
tests: add option test.stubs
This option provides a more convenient way to overlay dummy packages.
It also adds a function `config.lib.test.mkStubPackage` that can,
e.g., be used for `package` options.
2021-09-26 23:26:38 +02:00