
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
fetchpatch,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "shadowfox";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SrKomodo";
|
|
repo = "shadowfox-updater";
|
|
rev = "v${version}";
|
|
sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
|
|
};
|
|
|
|
patches = [
|
|
# get vendoring to work with go1.20
|
|
# https://github.com/arguablykomodo/shadowfox-updater/pull/70
|
|
(fetchpatch {
|
|
url = "https://github.com/arguablykomodo/shadowfox-updater/commit/c16be00829373e0de7de47d6fb4d4c341fc36f75.patch";
|
|
hash = "sha256-buijhFLI8Sf9qBDntf689Xcpr6me+aVDoRqwSIcKKEw=";
|
|
})
|
|
];
|
|
|
|
vendorHash = "sha256-3pHwyktSGxNM7mt0nPOe6uixS+bBJH9R8xqCyY6tlb0=";
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.tag=v${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Universal dark theme for Firefox while adhering to the modern design principles set by Mozilla";
|
|
homepage = "https://overdodactyl.github.io/ShadowFox/";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "shadowfox-updater";
|
|
};
|
|
}
|