2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "shadowfox";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SrKomodo";
|
|
|
|
repo = "shadowfox-updater";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
|
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
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=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
2022-07-18 16:21:45 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2021-08-27 14:25:00 +00:00
|
|
|
"-X main.tag=v${version}"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-18 16:21:45 +00:00
|
|
|
description = "Universal dark theme for Firefox while adhering to the modern design principles set by Mozilla";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://overdodactyl.github.io/ShadowFox/";
|
|
|
|
license = licenses.mit;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "shadowfox-updater";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|