22 stdenv.mkDerivation (finalAttrs: {
23 pname = "github-desktop";
27 url = "https://github.com/shiftkey/desktop/releases/download/release-${finalAttrs.version}-linux1/GitHubDesktop-linux-${finalAttrs.version}-linux1.deb";
28 hash = "sha256-p+qr9/aEQcfkKArC3oTyIijHkaNzLum3xXeSnNexgbU=";
33 (wrapGAppsHook.override { inherit makeWrapper; })
53 mkdir -p $TMP/${finalAttrs.pname} $out/{opt,bin}
54 cp $src $TMP/${finalAttrs.pname}.deb
55 ar vx ${finalAttrs.pname}.deb
56 tar --no-overwrite-dir -xvf data.tar.xz -C $TMP/${finalAttrs.pname}/
60 cp -R $TMP/${finalAttrs.pname}/usr/share $out/
61 cp -R $TMP/${finalAttrs.pname}/usr/lib/${finalAttrs.pname}/* $out/opt/
62 ln -sf $out/opt/${finalAttrs.pname} $out/bin/${finalAttrs.pname}
67 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
71 runtimeDependencies = [
76 description = "GUI for managing Git and GitHub.";
77 homepage = "https://desktop.github.com/";
78 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
79 license = lib.licenses.mit;
80 maintainers = with lib.maintainers; [ dan4ik605743 ];
81 platforms = lib.platforms.linux;