bump gamja
This commit is contained in:
@@ -100,6 +100,7 @@
|
|||||||
deploy-rs-pkg = null;
|
deploy-rs-pkg = null;
|
||||||
})
|
})
|
||||||
(_: super: {
|
(_: super: {
|
||||||
|
gamja = super.callPackage ./pkgs/gamja.nix { };
|
||||||
weather = super.callPackage ./pkgs/weather { };
|
weather = super.callPackage ./pkgs/weather { };
|
||||||
nicer = super.callPackage ./pkgs/nicer.nix { };
|
nicer = super.callPackage ./pkgs/nicer.nix { };
|
||||||
tmuxbash = super.callPackage ./pkgs/tmuxbash.nix { };
|
tmuxbash = super.callPackage ./pkgs/tmuxbash.nix { };
|
||||||
@@ -314,8 +315,9 @@
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.x86_64-linux.vanta-agent = pkgs.vanta-agent;
|
packages.x86_64-linux = {
|
||||||
packages.x86_64-linux.weather = pkgs.weather;
|
inherit (pkgs) weather gamja;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -202,8 +202,9 @@ in
|
|||||||
speedtest-cli
|
speedtest-cli
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
|
||||||
config.boot.kernelPackages.vm-tools
|
|
||||||
config.boot.kernelPackages.perf
|
config.boot.kernelPackages.perf
|
||||||
|
config.boot.kernelPackages.vm-tools
|
||||||
|
config.boot.kernelPackages.cpupower
|
||||||
]
|
]
|
||||||
(lib.mkIf (pkgs.stdenv.hostPlatform.system == "x86_64-linux") [ wrk2 ])
|
(lib.mkIf (pkgs.stdenv.hostPlatform.system == "x86_64-linux") [ wrk2 ])
|
||||||
];
|
];
|
||||||
|
|||||||
43
pkgs/gamja.nix
Normal file
43
pkgs/gamja.nix
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitea,
|
||||||
|
buildNpmPackage,
|
||||||
|
writeText,
|
||||||
|
# https://git.sr.ht/~emersion/gamja/tree/master/doc/config-file.md
|
||||||
|
gamjaConfig ? null,
|
||||||
|
}:
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "gamja";
|
||||||
|
version = "1.0.0-beta.10";
|
||||||
|
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
|
owner = "emersion";
|
||||||
|
repo = "gamja";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-JqnEiPnYRGSeIZm34Guu7MgMfwcySc42aTXweMqL8BQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-dAfbluNNBF1e9oagej+SRxO/YffCdLLAUUgt8krnWvg=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
cp -r dist $out
|
||||||
|
${lib.optionalString (
|
||||||
|
gamjaConfig != null
|
||||||
|
) "cp ${writeText "gamja-config" (builtins.toJSON gamjaConfig)} $out/config.json"}
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Simple IRC web client";
|
||||||
|
homepage = "https://git.sr.ht/~emersion/gamja";
|
||||||
|
license = licenses.agpl3Only;
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
motiejus
|
||||||
|
apfelkuchen6
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user