2021-07-24 12:14:16 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome
|
|
|
|
, libsecret
|
|
|
|
, git
|
|
|
|
, curl
|
|
|
|
, nss
|
|
|
|
, nspr
|
|
|
|
, xorg
|
|
|
|
, libdrm
|
|
|
|
, alsa-lib
|
|
|
|
, cups
|
|
|
|
, mesa
|
|
|
|
, systemd
|
2023-01-20 10:41:00 +00:00
|
|
|
, openssl
|
2021-07-24 12:14:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "github-desktop";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.1.1";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-10-01 09:20:50 +00:00
|
|
|
url = "https://github.com/shiftkey/desktop/releases/download/release-${version}-linux1/GitHubDesktop-linux-${version}-linux1.deb";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-R8t0y7b2upMOsWebIBr9+qT2GqQ/ahzWLcFIWwK4JTs=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome.gnome-keyring
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libX11
|
|
|
|
libsecret
|
|
|
|
git
|
|
|
|
curl
|
|
|
|
nss
|
|
|
|
nspr
|
|
|
|
libdrm
|
|
|
|
alsa-lib
|
|
|
|
cups
|
|
|
|
mesa
|
2023-01-20 10:41:00 +00:00
|
|
|
openssl
|
2021-07-24 12:14:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir -p $TMP/${pname} $out/{opt,bin}
|
|
|
|
cp $src $TMP/${pname}.deb
|
|
|
|
ar vx ${pname}.deb
|
|
|
|
tar --no-overwrite-dir -xvf data.tar.xz -C $TMP/${pname}/
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -R $TMP/${pname}/usr/share $out/
|
|
|
|
cp -R $TMP/${pname}/usr/lib/${pname}/* $out/opt/
|
|
|
|
ln -sf $out/opt/${pname} $out/bin/${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
runtimeDependencies = [
|
|
|
|
(lib.getLib systemd)
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GUI for managing Git and GitHub.";
|
|
|
|
homepage = "https://desktop.github.com/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-07-24 12:14:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|