tests: prevent some unnecessary downloads

This commit is contained in:
Robert Helgesson 2021-06-23 00:19:41 +02:00
parent 04955ca970
commit 762f860cfb
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 34 additions and 3 deletions

View file

@ -11,15 +11,19 @@ with lib;
nixpkgs.overlays = [
(self: super: {
firefox-unwrapped = pkgs.runCommand "firefox-0" {
firefox-unwrapped = pkgs.runCommandLocal "firefox-0" {
meta.description = "I pretend to be Firefox";
preferLocalBuild = true;
allowSubstitutes = false;
} ''
mkdir -p "$out/bin"
touch "$out/bin/firefox"
chmod 755 "$out/bin/firefox"
'';
chrome-gnome-shell =
pkgs.runCommandLocal "dummy-chrome-gnome-shell" { } ''
mkdir -p $out/lib/mozilla/native-messaging-hosts
touch $out/lib/mozilla/native-messaging-hosts/dummy
'';
})
];