gamja
This commit is contained in:
parent
e0c1747c43
commit
9e700d5c11
@ -106,6 +106,7 @@
|
|||||||
(_: super: {
|
(_: super: {
|
||||||
tmuxbash = super.callPackage ./pkgs/tmuxbash.nix {};
|
tmuxbash = super.callPackage ./pkgs/tmuxbash.nix {};
|
||||||
nicer = super.callPackage ./pkgs/nicer.nix {};
|
nicer = super.callPackage ./pkgs/nicer.nix {};
|
||||||
|
gamja = super.callPackage ./pkgs/gamja.nix {};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
@ -689,6 +689,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
gamja # wip
|
||||||
|
|
||||||
yt-dlp
|
yt-dlp
|
||||||
imapsync
|
imapsync
|
||||||
geoipWithDatabase
|
geoipWithDatabase
|
||||||
|
41
pkgs/gamja.nix
Normal file
41
pkgs/gamja.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromSourcehut,
|
||||||
|
buildNpmPackage,
|
||||||
|
python3,
|
||||||
|
writeText,
|
||||||
|
# optional configuration attrSet, see https://git.sr.ht/~emersion/gamja#configuration-file for possible values
|
||||||
|
gamjaConfig ? null,
|
||||||
|
}:
|
||||||
|
buildNpmPackage rec {
|
||||||
|
pname = "gamja";
|
||||||
|
version = "1.0.0-beta.9";
|
||||||
|
|
||||||
|
src = fetchFromSourcehut {
|
||||||
|
owner = "~emersion";
|
||||||
|
repo = "gamja";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-09rCj9oMzldRrxMGH4rUnQ6wugfhfmJP3rHET5b+NC8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-LxShwZacCctKAfMNCUMyrSaI1hIVN80Wseq/d8WITkc=";
|
||||||
|
|
||||||
|
# without this, the aarch64-linux build fails
|
||||||
|
nativeBuildInputs = [python3];
|
||||||
|
|
||||||
|
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 = "A simple IRC web client";
|
||||||
|
homepage = "https://git.sr.ht/~emersion/gamja";
|
||||||
|
license = licenses.agpl3Only;
|
||||||
|
maintainers = with maintainers; [motiejus];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user