From 8078f8a629c68deb89beb08da43f361be8a216e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 18 Mar 2024 21:31:42 +0200 Subject: [PATCH] gamja: use upstream --- flake.nix | 1 - pkgs/gamja.nix | 37 ------------------------------------- 2 files changed, 38 deletions(-) delete mode 100644 pkgs/gamja.nix diff --git a/flake.nix b/flake.nix index 69e12bd..d8a57f0 100644 --- a/flake.nix +++ b/flake.nix @@ -110,7 +110,6 @@ tmuxbash = super.callPackage ./pkgs/tmuxbash.nix {}; nicer = super.callPackage ./pkgs/nicer.nix {}; - gamja = super.callPackage ./pkgs/gamja.nix {}; # TODO: copied from 24.05 turbo = super.callPackage ./pkgs/turbo.nix {}; diff --git a/pkgs/gamja.nix b/pkgs/gamja.nix deleted file mode 100644 index 2ccce4c..0000000 --- a/pkgs/gamja.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - lib, - fetchFromSourcehut, - 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.9"; - - src = fetchFromSourcehut { - owner = "~emersion"; - repo = "gamja"; - rev = "v${version}"; - hash = "sha256-09rCj9oMzldRrxMGH4rUnQ6wugfhfmJP3rHET5b+NC8="; - }; - - npmDepsHash = "sha256-LxShwZacCctKAfMNCUMyrSaI1hIVN80Wseq/d8WITkc="; - - 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]; - }; -}