You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
{ buildGoModule, fetchFromGitea, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "hush-lightwalletd";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.hush.is";
|
|
owner = "hush";
|
|
repo = "lightwalletd";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-xzmNPoDDeZWe85SUoAj3ayzoE6JQHWNP1aDUt1WoJV8=";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X git.hush.is/hush/lightwalletd/common.Version=v${version}"
|
|
"-X git.hush.is/hush/lightwalletd/common.GitCommit=v${version}"
|
|
"-X git.hush.is/hush/lightwalletd/common.BuildDate=1970-01-01"
|
|
"-X git.hush.is/hush/lightwalletd/common.BuildUser=nixbld"
|
|
];
|
|
|
|
postFixup = ''
|
|
shopt -s extglob
|
|
cd $out/bin
|
|
rm !(lightwalletd)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A backend service that provides a bandwidth-efficient interface to the Hush blockchain";
|
|
homepage = "https://git.hush.is/hush/lightwalletd";
|
|
maintainers = with maintainers; [ jahway603 ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
|
|
|