add juicity pkg, and modify overlays.

This commit is contained in:
ulic-youthlic 2025-02-03 14:07:16 +08:00
parent c0736d3c9a
commit 63a8871eaa
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
6 changed files with 44 additions and 0 deletions

View file

@ -6,6 +6,7 @@
{
pinentry-selector = pkgs.callPackage ./pinentry-selector.nix { };
helix = pkgs.callPackage ./helix.nix { inherit inputs; };
juicity = pkgs.callPackage ./juicity.nix { };
}
// (
let

30
pkgs/juicity.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }:
pkgs.buildGoModule rec {
name = "juicity";
version = "unstable-20240514.r132.4af4f68";
src = pkgs.fetchFromGitHub {
repo = "juicity";
owner = "juicity";
rev = "4af4f68b405a6b86560ebb16963d133a7196af5c";
hash = "sha256-4sej/nb7d58+hSCaD6KIfDsqiGmgECPIbRKR65TbMBM=";
};
env.CGO_ENABLED = 0;
subPackages = [
"cmd/server"
"cmd/client"
];
vendorHash = "sha256-uULJKg1nh6jU0uIgDf4GMu8O00zifLvU2wv65dlHLAs=";
postInstallPhase = ''
mv $out/bin/server $out/bin/juicity-server
mv $out/bin/client $out/bin/juicity-client
'';
ldflags = [
"-s"
"-w"
"-X"
"github.com/juicity/juicity/config.Version=${version}"
];
}