diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-20 09:06:59 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-20 09:08:09 +0200 |
commit | 59d8351f0f60fafea11310fdff417b3a10849b0f (patch) | |
tree | 31d4c0f870cf044b8e458369205712eeb716a669 /pkgs | |
parent | 8aa92df57a666800132a4d73de71159bf17cccd5 (diff) | |
download | nixos-personal-59d8351f0f60fafea11310fdff417b3a10849b0f.tar.gz nixos-personal-59d8351f0f60fafea11310fdff417b3a10849b0f.tar.bz2 nixos-personal-59d8351f0f60fafea11310fdff417b3a10849b0f.zip |
pkgs: add Ferdium
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 5 | ||||
-rw-r--r-- | pkgs/ferdium/default.nix | 33 |
2 files changed, 38 insertions, 0 deletions
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 = [ ]; + }; +} |