about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/shadowfox/default.nix
blob: b22a3f464d3cd9af3e6434a615e406764ba4e0d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
  pname = "shadowfox";
  version = "2.0.1";

  src = fetchFromGitHub {
    owner = "SrKomodo";
    repo = "shadowfox-updater";
    rev = "v${version}";
    sha256 = "0j8ljnx281a5nwd3zpw7b25ndsxc26b52glk2hqhm5fh08f9w0d8";
  };

  goPackagePath = "github.com/SrKomodo/shadowfox-updater";

  modSha256 = "0anxrff09r5aw3a11iph0gigmcbmpfczm8him6ly57ywfzc5c850";

  buildFlags = "--tags release";

  postInstall = ''
    # Contains compiler package only used by projects CI, and buildGoModule
    # installs all binaries by default. So we remove this again.
    rm $out/bin/compiler
  '';

  meta = with stdenv.lib; {
    description = ''
      This project aims at creating a universal dark theme for Firefox while
      adhering to the modern design principles set by Mozilla.
    '';
    homepage = "https://overdodactyl.github.io/ShadowFox/";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ infinisil ];
  };
}