add juicity pkg, and modify overlays.
This commit is contained in:
parent
c0736d3c9a
commit
63a8871eaa
6 changed files with 44 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
config = {
|
||||
home.packages = with pkgs; [
|
||||
spacer
|
||||
devenv
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,6 +84,8 @@
|
|||
nvtopPackages.full
|
||||
spotify
|
||||
localsend
|
||||
|
||||
juicity
|
||||
];
|
||||
|
||||
environment.variables.EDITOR = "hx";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ let
|
|||
./spotify.nix
|
||||
./niri.nix
|
||||
./ghostty.nix
|
||||
./juicity.nix
|
||||
];
|
||||
overlay-list = map (file: import file args) overlay-files;
|
||||
in
|
||||
|
|
|
|||
9
overlays/modifications/juicity.nix
Normal file
9
overlays/modifications/juicity.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ outputs, ... }:
|
||||
final: prev:
|
||||
let
|
||||
inherit (final) stdenv;
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
in
|
||||
{
|
||||
juicity = outputs.packages."${system}".juicity;
|
||||
}
|
||||
|
|
@ -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
30
pkgs/juicity.nix
Normal 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}"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue