fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Damien Cassoufirefox: extract an overlay common to all testsf033205b

master
569 B22 linesraw
1{ pkgs, ... }:
2
3{
4  nixpkgs.overlays = [
5    (self: super: {
6      firefox-unwrapped = pkgs.runCommandLocal "firefox-0" {
7        meta.description = "I pretend to be Firefox";
8        passthru.gtk3 = null;
9      } ''
10        mkdir -p "$out"/{bin,lib}
11        touch "$out/bin/firefox"
12        chmod 755 "$out/bin/firefox"
13      '';
14
15      chrome-gnome-shell =
16        pkgs.runCommandLocal "dummy-chrome-gnome-shell" { } ''
17          mkdir -p $out/lib/mozilla/native-messaging-hosts
18          touch $out/lib/mozilla/native-messaging-hosts/dummy
19        '';
20    })
21  ];
22}