mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
ccec93c1c7
sed -i 's/ webkitgtk\b/ webkitgtk_4_0/g' pkgs/**.nix sed -i 's/(webkitgtk\b/(webkitgtk_4_0/g' pkgs/**.nix sed -i 's/\.webkitgtk\b/.webkitgtk_4_0/g' pkgs/**.nix webkitgtk is currently pointing to that specific ABI version but the alias is going to start warning
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, autoPatchelfHook
|
|
, dpkg
|
|
, glib-networking
|
|
, gst_all_1
|
|
, libappindicator
|
|
, libayatana-appindicator
|
|
, webkitgtk_4_0
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dorion";
|
|
version = "5.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/SpikeHD/Dorion/releases/download/v${finalAttrs.version }/Dorion_${finalAttrs.version}_amd64.deb";
|
|
hash = "sha256-cCZikTZ+IU3mq/FkJfeggXLyWIsWG+a2qu1GbgW93WQ=";
|
|
};
|
|
|
|
unpackCmd = ''
|
|
dpkg -X $curSrc .
|
|
'';
|
|
|
|
runtimeDependencies = [
|
|
glib-networking
|
|
libappindicator
|
|
libayatana-appindicator
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
dpkg
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib-networking
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
webkitgtk_4_0
|
|
];
|
|
|
|
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 ];
|
|
platforms = lib.intersectLists (lib.platforms.linux) (lib.platforms.x86_64);
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
})
|