From 59d8351f0f60fafea11310fdff417b3a10849b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 20 Jun 2022 09:06:59 +0200 Subject: pkgs: add Ferdium --- pkgs/default.nix | 5 +++++ pkgs/ferdium/default.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/ferdium/default.nix (limited to 'pkgs') diff --git a/pkgs/default.nix b/pkgs/default.nix index 2d9af4d..c015f7c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -22,6 +22,11 @@ let #with pythonPackages; [ # (pythonPackages.callPackage ./python/notify-send.nix { }) #]); + ferdium = callPackage ./ferdium { + mkFranzDerivation = callPackage ( + nixpkgs.path + "/pkgs/applications/networking/instant-messengers/franz/generic.nix" + ) { }; + }; }; diff --git a/pkgs/ferdium/default.nix b/pkgs/ferdium/default.nix new file mode 100644 index 0000000..328983e --- /dev/null +++ b/pkgs/ferdium/default.nix @@ -0,0 +1,33 @@ +{ lib, mkFranzDerivation, fetchurl, xorg, xdg-utils, buildEnv, writeShellScriptBin }: + +let + mkFranzDerivation' = mkFranzDerivation.override { + xdg-utils = buildEnv { + name = "xdg-utils-for-ferdium"; + paths = [ + xdg-utils + (lib.hiPrio (writeShellScriptBin "xdg-open" '' + unset GDK_BACKEND + exec ${xdg-utils}/bin/xdg-open "$@" + '')) + ]; + }; + }; +in +mkFranzDerivation' rec { + pname = "ferdium"; + name = "Ferdium"; + version = "6.0.0-nightly.63"; + src = fetchurl { + url = "https://github.com/ferdium/ferdium-app/releases/download/v${version}/ferdium_${version}_amd64.deb"; + sha256 = "05cwqki6gv9iaic6j9isajx09pm7pip65l33fyjjjh5g54pk4swn"; + }; + extraBuildInputs = [ xorg.libxshmfence ]; + meta = with lib; { + description = "Combine your favorite messaging services into one application"; + homepage = "https://ferdium.org/"; + license = licenses.asl20; + platforms = [ "x86_64-linux" ]; + hydraPlatforms = [ ]; + }; +} -- cgit v1.2.3