nixpkgs/pkgs/by-name/do/dorion/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.3 KiB
Nix
Raw Normal View History

2023-08-31 19:30:57 +00:00
{ lib
, stdenv
, fetchurl
, autoPatchelfHook
, dpkg
, glib-networking
, gst_all_1
, libappindicator
, libayatana-appindicator
, webkitgtk_4_0
, wrapGAppsHook3
2023-08-31 19:30:57 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2024-05-27 19:50:14 +00:00
pname = "dorion";
2024-06-25 13:39:54 +00:00
version = "5.0.1";
2023-08-31 19:30:57 +00:00
src = fetchurl {
url = "https://github.com/SpikeHD/Dorion/releases/download/v${finalAttrs.version }/Dorion_${finalAttrs.version}_amd64.deb";
2024-06-25 13:39:54 +00:00
hash = "sha256-cCZikTZ+IU3mq/FkJfeggXLyWIsWG+a2qu1GbgW93WQ=";
2023-08-31 19:30:57 +00:00
};
unpackCmd = ''
dpkg -X $curSrc .
'';
runtimeDependencies = [
glib-networking
libappindicator
libayatana-appindicator
];
nativeBuildInputs = [
autoPatchelfHook
dpkg
wrapGAppsHook3
2023-08-31 19:30:57 +00:00
];
buildInputs = [
glib-networking
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
webkitgtk_4_0
2023-08-31 19:30:57 +00:00
];
installPhase = ''
runHook preInstall
mkdir -pv $out
mv -v {bin,lib,share} $out
runHook postInstall
'';
meta = {
homepage = "https://github.com/SpikeHD/Dorion";
description = "Tiny alternative Discord client";
license = lib.licenses.gpl3Only;
mainProgram = "dorion";
maintainers = with lib.maintainers; [ aleksana ];
2023-08-31 19:30:57 +00:00
platforms = lib.intersectLists (lib.platforms.linux) (lib.platforms.x86_64);
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})