mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ pkgs, lib, self }:
|
|
|
|
let
|
|
neofetchWrapper = ../../configs/wrapper-neofetch.nix;
|
|
fastfetchWrapper = ../../configs/wrapper-fastfetch.nix;
|
|
in
|
|
lib.runTests {
|
|
testsEvaluateSampleConfiguration = {
|
|
expr =
|
|
let
|
|
sampleConf = self.env.eval {
|
|
inherit pkgs;
|
|
modules = [ neofetchWrapper ];
|
|
specialArgs.yourMomName = "Joe Mama";
|
|
};
|
|
in
|
|
lib.isDerivation sampleConf.config.build.toplevel;
|
|
expected = true;
|
|
};
|
|
|
|
testsEvaluateSampleConfiguration2 = {
|
|
expr =
|
|
let
|
|
sampleConf = self.env.eval {
|
|
inherit pkgs;
|
|
modules = [ fastfetchWrapper ];
|
|
specialArgs.yourMomName = "Joe Mama";
|
|
};
|
|
in
|
|
lib.isDerivation sampleConf.config.build.toplevel;
|
|
expected = true;
|
|
};
|
|
|
|
testsBuildSampleConfiguration = {
|
|
expr =
|
|
let
|
|
sampleConf = self.env.build {
|
|
inherit pkgs;
|
|
modules = [ neofetchWrapper ];
|
|
specialArgs.yourMomName = "Joe Mama";
|
|
};
|
|
in
|
|
lib.isDerivation sampleConf;
|
|
expected = true;
|
|
};
|
|
|
|
testsBuildSampleConfiguration2 = {
|
|
expr =
|
|
let
|
|
sampleConf = self.env.build {
|
|
inherit pkgs;
|
|
modules = [ fastfetchWrapper ];
|
|
specialArgs.yourMomName = "Joe Mama";
|
|
};
|
|
in
|
|
lib.isDerivation sampleConf;
|
|
expected = true;
|
|
};
|
|
}
|