~kaction/config

ref: c15a3cb21bfffdce7b9fcefc4479fabd6fe43e11 config/concession/firefox/default.nix -rw-r--r-- 386 bytes
c15a3cb2 — Dmitry Bogatov nix-sys: mark files created as immutable 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ substituteAll, execline, firefox, busybox, buildEnv }:
let
  wrapper = substituteAll {
    src = ./firefox.exec;
    inherit firefox busybox execline;
    userjs = ./user.js;
    isExecutable = true;
  };
in buildEnv {
  inherit (firefox) name;
  paths = [ firefox ];
  pathsToLink = [ "/" "/bin" ];
  postBuild = ''
    rm $out/bin/firefox
    cp ${wrapper} $out/bin/firefox
  '';
}