https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
12 lines
176 B
Nix
12 lines
176 B
Nix
{ pkgs, makeInstalledTest, ... }:
|
|
|
|
makeInstalledTest {
|
|
tested = pkgs.gjs;
|
|
withX11 = true;
|
|
|
|
testConfig = {
|
|
environment.systemPackages = [
|
|
pkgs.gjs
|
|
];
|
|
};
|
|
}
|