mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
dorion: init at 1.2.1
This commit is contained in:
parent
3dc2b4f816
commit
bc16dfe4b3
65
pkgs/by-name/do/dorion/package.nix
Normal file
65
pkgs/by-name/do/dorion/package.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, autoPatchelfHook
|
||||
, dpkg
|
||||
, glib-networking
|
||||
, gst_all_1
|
||||
, libappindicator
|
||||
, libayatana-appindicator
|
||||
, webkitgtk
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
name = "dorion";
|
||||
version = "1.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/SpikeHD/Dorion/releases/download/v${finalAttrs.version }/Dorion_${finalAttrs.version}_amd64.deb";
|
||||
hash = "sha256-FghJM34GMt8+4b6jsQQSsfmHIyua/pjRHKNErGyK/kw=";
|
||||
};
|
||||
|
||||
unpackCmd = ''
|
||||
dpkg -X $curSrc .
|
||||
'';
|
||||
|
||||
runtimeDependencies = [
|
||||
glib-networking
|
||||
libappindicator
|
||||
libayatana-appindicator
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
dpkg
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib-networking
|
||||
gst_all_1.gst-plugins-bad
|
||||
gst_all_1.gst-plugins-base
|
||||
gst_all_1.gst-plugins-good
|
||||
webkitgtk
|
||||
];
|
||||
|
||||
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; [ ];
|
||||
platforms = lib.intersectLists (lib.platforms.linux) (lib.platforms.x86_64);
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user