Browse Source

working on hush-lightwalletd nixpkg

master
jahway603 2 years ago
parent
commit
824c5e2453
  1. 39
      hush-lightwalletd/default.nix

39
hush-lightwalletd/default.nix

@ -0,0 +1,39 @@
{ 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;
};
}
Loading…
Cancel
Save