1
0
Fork 0
nix-overlay/packages/anonymous-overflow.nix

28 lines
825 B
Nix

{ pkgs, lib }:
pkgs.buildGoModule rec {
pname = "anonymous-overflow";
version = "1.12.0";
src = pkgs.fetchFromGitHub {
owner = "httpjamesm";
repo = "AnonymousOverflow";
rev = "v${version}";
hash = "sha256-Pc8WtvkmcF4LtrR3R80o53dd1ExxVvVydcmQAas0KsM=";
};
vendorHash = "sha256-OpshgE/T7XFMLQuRJhZ93l000TwO0diGqOC0mkakGSc=";
postInstall = ''
mkdir -p $out/share/anonymous-overflow
cp -r public $out/share/anonymous-overflow/public
cp -r templates $out/share/anonymous-overflow/templates
'';
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" ];
};
}