nixos-config/subprojects/wrapper-manager-fds/tests/lib/env/default.nix
Gabriel Arazas 3324c12d4c
wrapper-manager-fds/modules: overhaul wrapper config
Now, there could be multiple wrappers within the configuration but it
should still result with one derivation unlike the original version.
This could be handy for making package overrides with multiple binaries
(for example, 7Z) while making the interface consistent. This turns out
to be way nicer than I thought which is a good thing.
2024-07-08 21:12:31 +08:00

30 lines
638 B
Nix

{ pkgs, lib, self }:
lib.runTests {
testsBuildSampleConfiguration = {
expr =
let
sampleConf = self.env.build {
inherit pkgs;
modules = [ ./wrapper-neofetch.nix ];
specialArgs.yourMomName = "Joe Mama";
};
in
lib.isDerivation sampleConf;
expected = true;
};
testsBuildSampleConfiguration2 = {
expr =
let
sampleConf = self.env.build {
inherit pkgs;
modules = [ ./wrapper-fastfetch.nix ];
specialArgs.yourMomName = "Joe Mama";
};
in
lib.isDerivation sampleConf;
expected = true;
};
}