aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: adc3eea6238a98495830152bd488bf058d8f48a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  description = "Firefox userChrome.css";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  outputs =
    { self, nixpkgs }:
    {
      userChrome = builtins.readFile ./userChrome.css;

      # `nix fmt` formats userChrome.css with prettier
      formatter = nixpkgs.lib.mapAttrs (
        system: pkgs:
        pkgs.writeShellApplication {
          name = "fmt";
          runtimeInputs = [ pkgs.prettier ];
          text = ''
            prettier --write userChrome.css
          '';
        }
      ) nixpkgs.legacyPackages;
    };
}