2023-02-15 14:00:38 +00:00
|
|
|
{ system, lib, pkgs }:
|
|
|
|
|
|
|
|
pkgs.buildGoModule rec {
|
|
|
|
pname = "anonymous-overflow";
|
2023-03-22 23:29:32 +00:00
|
|
|
version = "1.8.2";
|
2023-02-15 14:00:38 +00:00
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "httpjamesm";
|
|
|
|
repo = "AnonymousOverflow";
|
|
|
|
rev = "v${version}";
|
2023-03-22 23:29:32 +00:00
|
|
|
sha256 = "sha256-JCb2+x91o2daAf2FbuMGVgZpv2za4zlSk55xMN2oFMk=";
|
2023-02-15 14:00:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-CAEGKBNqVnNJn8vP8yR93WKFNu/WLn9+kYinQQtiAYE=";
|
|
|
|
|
2023-02-15 21:00:09 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/anonymous-overflow
|
|
|
|
cp -r public $out/share/anonymous-overflow/public
|
|
|
|
cp -r templates $out/share/anonymous-overflow/templates
|
|
|
|
'';
|
|
|
|
|
2023-02-15 14:00:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "View StackOverflow in privacy and without the clutter.";
|
|
|
|
homepage = "https://github.com/httpjamesm/AnonymousOverflow";
|
|
|
|
license = [ licenses.mpl20 ];
|
|
|
|
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|