commit
e5f6200d16
@ -1,96 +0,0 @@
|
|||||||
{ lib, stdenv, pkgs, fetchurl, wrapGAppsHook, glib, gtk3, atomEnv }:
|
|
||||||
|
|
||||||
let
|
|
||||||
versions = {
|
|
||||||
atom = {
|
|
||||||
version = "1.60.0";
|
|
||||||
sha256 = "sha256-XHwCWQYrnUkR0lN7/Or/Uxb53hEWmIQKkNfNSX34kaY=";
|
|
||||||
};
|
|
||||||
|
|
||||||
atom-beta = {
|
|
||||||
version = "1.61.0";
|
|
||||||
beta = 0;
|
|
||||||
sha256 = "sha256-viY/is7Nh3tlIkHhUBWtgMAjD6HDiC0pyJpUjsP5pRY=";
|
|
||||||
broken = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
common = pname: {version, sha256, beta ? null, broken ? false}:
|
|
||||||
let fullVersion = version + lib.optionalString (beta != null) "-beta${toString beta}";
|
|
||||||
name = "${pname}-${fullVersion}";
|
|
||||||
in stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
version = fullVersion;
|
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://github.com/atom/atom/releases/download/v${fullVersion}/atom-amd64.deb";
|
|
||||||
name = "${name}.deb";
|
|
||||||
inherit sha256;
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
gtk3 # Fix error: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed
|
|
||||||
];
|
|
||||||
|
|
||||||
dontBuild = true;
|
|
||||||
dontConfigure = true;
|
|
||||||
|
|
||||||
unpackPhase = ''
|
|
||||||
ar p $src data.tar.xz | tar xJ ./usr/
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
|
|
||||||
mkdir -p $out
|
|
||||||
mv usr/bin usr/share $out
|
|
||||||
rm -rf $out/share/lintian
|
|
||||||
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
preFixup = ''
|
|
||||||
gappsWrapperArgs+=(
|
|
||||||
# needed for gio executable to be able to delete files
|
|
||||||
--prefix "PATH" : "${glib.bin}/bin"
|
|
||||||
)
|
|
||||||
'';
|
|
||||||
|
|
||||||
postFixup = ''
|
|
||||||
share=$out/share/${pname}
|
|
||||||
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
--set-rpath "${atomEnv.libPath}:$share" \
|
|
||||||
$share/atom
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
--set-rpath "${atomEnv.libPath}" \
|
|
||||||
$share/resources/app/apm/bin/node
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
$share/resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-linux
|
|
||||||
|
|
||||||
dugite=$share/resources/app.asar.unpacked/node_modules/dugite
|
|
||||||
rm -f $dugite/git/bin/git
|
|
||||||
ln -s ${pkgs.git}/bin/git $dugite/git/bin/git
|
|
||||||
rm -f $dugite/git/libexec/git-core/git
|
|
||||||
ln -s ${pkgs.git}/bin/git $dugite/git/libexec/git-core/git
|
|
||||||
|
|
||||||
find $share -name "*.node" -exec patchelf --set-rpath "${atomEnv.libPath}:$share" {} \;
|
|
||||||
|
|
||||||
sed -i -e "s|Exec=.*$|Exec=$out/bin/${pname}|" $out/share/applications/${pname}.desktop
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A hackable text editor for the 21st Century";
|
|
||||||
homepage = "https://atom.io/";
|
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ offline ysndr ];
|
|
||||||
platforms = platforms.x86_64;
|
|
||||||
inherit broken;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in lib.mapAttrs common versions
|
|
@ -1,23 +0,0 @@
|
|||||||
{ stdenv, lib, zlib, glib, alsa-lib, dbus, gtk3, atk, pango, freetype, fontconfig
|
|
||||||
, gdk-pixbuf, cairo, cups, expat, libgpg-error, nspr
|
|
||||||
, nss, xorg, libcap, systemd, libnotify, libsecret, libuuid, at-spi2-atk
|
|
||||||
, at-spi2-core, libdbusmenu, libdrm, mesa
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
packages = [
|
|
||||||
stdenv.cc.cc zlib glib dbus gtk3 atk pango freetype
|
|
||||||
fontconfig gdk-pixbuf cairo cups expat libgpg-error alsa-lib nspr nss
|
|
||||||
xorg.libXrender xorg.libX11 xorg.libXext xorg.libXdamage xorg.libXtst
|
|
||||||
xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
|
|
||||||
xorg.libXcursor xorg.libxkbfile xorg.libXScrnSaver libcap systemd libnotify
|
|
||||||
xorg.libxcb libsecret libuuid at-spi2-atk at-spi2-core libdbusmenu
|
|
||||||
libdrm
|
|
||||||
mesa # required for libgbm
|
|
||||||
];
|
|
||||||
|
|
||||||
libPathNative = lib.makeLibraryPath packages;
|
|
||||||
libPath64 = lib.makeSearchPathOutput "lib" "lib64" packages;
|
|
||||||
libPath = "${libPathNative}:${libPath64}";
|
|
||||||
|
|
||||||
in { inherit packages libPath; }
|
|
@ -1,22 +1,32 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, git
|
, git
|
||||||
, runtimeShell
|
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, alsa-lib
|
||||||
|
, at-spi2-atk
|
||||||
|
, cairo
|
||||||
|
, cups
|
||||||
|
, dbus
|
||||||
|
, expat
|
||||||
|
, gdk-pixbuf
|
||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
, atomEnv
|
, mesa
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
, xorg
|
, xorg
|
||||||
|
, libdrm
|
||||||
|
, libsecret
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
, hunspell
|
, pango
|
||||||
|
, systemd
|
||||||
, hunspellDicts
|
, hunspellDicts
|
||||||
, useHunspell ? true
|
, useHunspell ? true
|
||||||
, languages ? [ "en_US" ]
|
, languages ? [ "en_US" ]
|
||||||
, withNemoAction ? true
|
, withNemoAction ? true
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, makeWrapper
|
|
||||||
, asar
|
, asar
|
||||||
, python3
|
, python3
|
||||||
}:
|
}:
|
||||||
@ -32,13 +42,35 @@ let
|
|||||||
aarch64-linux.hash = "sha256-GdPnmhMZR3Y2WB2j98JEWomdKFZuTgxN8oga/tBwA4U=";
|
aarch64-linux.hash = "sha256-GdPnmhMZR3Y2WB2j98JEWomdKFZuTgxN8oga/tBwA4U=";
|
||||||
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
additionalLibs = lib.makeLibraryPath [
|
newLibpath = lib.makeLibraryPath [
|
||||||
|
alsa-lib
|
||||||
|
at-spi2-atk
|
||||||
|
cairo
|
||||||
|
cups
|
||||||
|
dbus
|
||||||
|
expat
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
libsecret
|
||||||
|
mesa
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
libdrm
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXrandr
|
||||||
xorg.libxshmfence
|
xorg.libxshmfence
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
xorg.libxkbfile
|
xorg.libxkbfile
|
||||||
|
pango
|
||||||
stdenv.cc.cc.lib
|
stdenv.cc.cc.lib
|
||||||
|
systemd
|
||||||
];
|
];
|
||||||
newLibpath = "${atomEnv.libPath}:${additionalLibs}";
|
|
||||||
|
|
||||||
# Hunspell
|
# Hunspell
|
||||||
hunspellDirs = builtins.map (lang: "${hunspellDicts.${lang}}/share/hunspell") languages;
|
hunspellDirs = builtins.map (lang: "${hunspellDicts.${lang}}/share/hunspell") languages;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, makeDesktopItem
|
{ stdenv, lib, makeDesktopItem
|
||||||
, unzip, libsecret, libXScrnSaver, libxshmfence, buildPackages
|
, unzip, libsecret, libXScrnSaver, libxshmfence, buildPackages
|
||||||
, atomEnv, at-spi2-atk, autoPatchelfHook
|
, at-spi2-atk, autoPatchelfHook, alsa-lib, mesa, nss, nspr, xorg
|
||||||
, systemd, fontconfig, libdbusmenu, glib, buildFHSEnv, wayland
|
, systemd, fontconfig, libdbusmenu, glib, buildFHSEnv, wayland
|
||||||
, libglvnd, libkrb5
|
, libglvnd, libkrb5
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libsecret libXScrnSaver libxshmfence ]
|
buildInputs = [ libsecret libXScrnSaver libxshmfence ]
|
||||||
++ lib.optionals (!stdenv.isDarwin) ([ at-spi2-atk libkrb5 ] ++ atomEnv.packages);
|
++ lib.optionals (!stdenv.isDarwin) [ alsa-lib at-spi2-atk libkrb5 mesa nss nspr systemd xorg.libxkbfile ];
|
||||||
|
|
||||||
runtimeDependencies = lib.optionals stdenv.isLinux [ (lib.getLib systemd) fontconfig.lib libdbusmenu wayland libsecret ];
|
runtimeDependencies = lib.optionals stdenv.isLinux [ (lib.getLib systemd) fontconfig.lib libdbusmenu wayland libsecret ];
|
||||||
|
|
||||||
|
@ -4,21 +4,31 @@
|
|||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, libuuid
|
, alsa-lib
|
||||||
, libunwind
|
|
||||||
, libxkbcommon
|
|
||||||
, icu
|
|
||||||
, openssl
|
|
||||||
, zlib
|
|
||||||
, curl
|
|
||||||
, at-spi2-core
|
|
||||||
, at-spi2-atk
|
, at-spi2-atk
|
||||||
|
, at-spi2-core
|
||||||
|
, cairo
|
||||||
|
, cups
|
||||||
|
, curl
|
||||||
|
, dbus
|
||||||
|
, expat
|
||||||
|
, gdk-pixbuf
|
||||||
|
, glib
|
||||||
, gnutar
|
, gnutar
|
||||||
, atomEnv
|
, gtk3
|
||||||
, libkrb5
|
, icu
|
||||||
, libdrm
|
, libdrm
|
||||||
|
, libunwind
|
||||||
|
, libuuid
|
||||||
|
, libxkbcommon
|
||||||
, mesa
|
, mesa
|
||||||
|
, nspr
|
||||||
|
, nss
|
||||||
|
, openssl
|
||||||
|
, pango
|
||||||
|
, systemd
|
||||||
, xorg
|
, xorg
|
||||||
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# from justinwoo/azuredatastudio-nix
|
# from justinwoo/azuredatastudio-nix
|
||||||
@ -115,20 +125,34 @@ stdenv.mkDerivation rec {
|
|||||||
sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/4.7.1.6";
|
sqltoolsservicePath = "${targetPath}/resources/app/extensions/mssql/sqltoolsservice/Linux/4.7.1.6";
|
||||||
|
|
||||||
rpath = lib.concatStringsSep ":" [
|
rpath = lib.concatStringsSep ":" [
|
||||||
atomEnv.libPath
|
(lib.makeLibraryPath [
|
||||||
(
|
alsa-lib
|
||||||
lib.makeLibraryPath [
|
at-spi2-atk
|
||||||
libuuid
|
cairo
|
||||||
at-spi2-core
|
cups
|
||||||
at-spi2-atk
|
dbus
|
||||||
stdenv.cc.cc.lib
|
expat
|
||||||
libkrb5
|
gdk-pixbuf
|
||||||
libdrm
|
glib
|
||||||
libxkbcommon
|
gtk3
|
||||||
mesa
|
mesa
|
||||||
xorg.libxshmfence
|
nss
|
||||||
]
|
nspr
|
||||||
)
|
libdrm
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libxshmfence
|
||||||
|
libxkbcommon
|
||||||
|
xorg.libxkbfile
|
||||||
|
pango
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
systemd
|
||||||
|
])
|
||||||
targetPath
|
targetPath
|
||||||
sqltoolsserviceRpath
|
sqltoolsserviceRpath
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,31 @@
|
|||||||
{ stdenv, lib, fetchurl, buildFHSEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, libxkbcommon, libxshmfence, at-spi2-atk, icu, openssl, zlib }:
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, buildFHSEnv
|
||||||
|
, makeDesktopItem
|
||||||
|
, makeWrapper
|
||||||
|
, alsa-lib
|
||||||
|
, at-spi2-atk
|
||||||
|
, cairo
|
||||||
|
, cups
|
||||||
|
, dbus
|
||||||
|
, expat
|
||||||
|
, gdk-pixbuf
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, mesa
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
|
, libdrm
|
||||||
|
, xorg
|
||||||
|
, libxkbcommon
|
||||||
|
, libxshmfence
|
||||||
|
, pango
|
||||||
|
, systemd
|
||||||
|
, icu
|
||||||
|
, openssl
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
pname = "sidequest";
|
pname = "sidequest";
|
||||||
version = "0.10.33";
|
version = "0.10.33";
|
||||||
@ -21,20 +48,46 @@
|
|||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildCommand = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/lib/SideQuest" "$out/bin"
|
mkdir -p "$out/lib/SideQuest" "$out/bin"
|
||||||
tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
|
tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
|
||||||
|
|
||||||
ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
|
ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
|
||||||
|
'';
|
||||||
|
|
||||||
fixupPhase
|
postFixup = let
|
||||||
|
libPath = lib.makeLibraryPath [
|
||||||
# mkdir -p "$out/share/applications"
|
alsa-lib
|
||||||
# ln -s "${desktopItem}/share/applications/*" "$out/share/applications"
|
at-spi2-atk
|
||||||
|
cairo
|
||||||
|
cups
|
||||||
|
dbus
|
||||||
|
expat
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
mesa
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
libdrm
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libxshmfence
|
||||||
|
libxkbcommon
|
||||||
|
xorg.libxkbfile
|
||||||
|
pango
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
in ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}/lib:${lib.makeLibraryPath [libuuid at-spi2-atk]}:$out/lib/SideQuest" \
|
--set-rpath "${libPath}:$out/lib/SideQuest" \
|
||||||
"$out/lib/SideQuest/sidequest"
|
"$out/lib/SideQuest/sidequest"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ atomEnv
|
{ autoPatchelfHook
|
||||||
, autoPatchelfHook
|
|
||||||
, dpkg
|
, dpkg
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
@ -7,7 +6,13 @@
|
|||||||
, lib
|
, lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, udev
|
, udev
|
||||||
|
, alsa-lib
|
||||||
|
, mesa
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
|
, systemd
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, xorg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -40,9 +45,7 @@ let
|
|||||||
inherit pname version meta;
|
inherit pname version meta;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url =
|
url = "https://github.com/Automattic/simplenote-electron/releases/download/v${version}/Simplenote-linux-${version}-amd64.deb";
|
||||||
"https://github.com/Automattic/simplenote-electron/releases/download/"
|
|
||||||
+ "v${version}/Simplenote-linux-${version}-amd64.deb";
|
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -61,6 +64,7 @@ let
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
dpkg
|
dpkg
|
||||||
@ -68,7 +72,16 @@ let
|
|||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = atomEnv.packages;
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
mesa
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
xorg.libXtst
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
stdenv.cc.cc
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
unpackPhase = "dpkg-deb -x $src .";
|
||||||
|
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, atomEnv
|
|
||||||
, electron_26
|
, electron_26
|
||||||
, systemd
|
|
||||||
, pulseaudio
|
|
||||||
, libxshmfence
|
|
||||||
, libnotify
|
|
||||||
, libappindicator-gtk3
|
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, autoPatchelfHook
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -38,18 +31,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl (srcs."${system}" or (throw "Unsupported system ${system}"));
|
src = fetchurl (srcs."${system}" or (throw "Unsupported system ${system}"));
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildInputs = atomEnv.packages ++ [
|
|
||||||
libxshmfence
|
|
||||||
];
|
|
||||||
|
|
||||||
runtimeDependencies = [
|
|
||||||
(lib.getLib systemd)
|
|
||||||
pulseaudio
|
|
||||||
libnotify
|
|
||||||
libappindicator-gtk3
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
@ -1,24 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, runtimeShell
|
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, autoPatchelfHook
|
|
||||||
, wrapGAppsHook
|
|
||||||
, dpkg
|
|
||||||
, atomEnv
|
|
||||||
, libuuid
|
|
||||||
, libappindicator-gtk3
|
|
||||||
, pulseaudio
|
|
||||||
, at-spi2-atk
|
|
||||||
, coreutils
|
|
||||||
, gawk
|
|
||||||
, xdg-utils
|
|
||||||
, systemd
|
|
||||||
, asar
|
|
||||||
, xar
|
, xar
|
||||||
, cpio
|
, cpio
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, enableRectOverlay ? false
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ atomEnv
|
{ autoPatchelfHook
|
||||||
, autoPatchelfHook
|
|
||||||
, dpkg
|
, dpkg
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
@ -11,7 +10,11 @@
|
|||||||
, cpio
|
, cpio
|
||||||
, xar
|
, xar
|
||||||
, libdbusmenu
|
, libdbusmenu
|
||||||
, libxshmfence
|
, alsa-lib
|
||||||
|
, mesa
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
|
, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -64,8 +67,7 @@ let
|
|||||||
inherit pname version meta;
|
inherit pname version meta;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://wire-app.wire.com/linux/debian/pool/main/"
|
url = "https://wire-app.wire.com/linux/debian/pool/main/Wire-${version}_amd64.deb";
|
||||||
+ "Wire-${version}_amd64.deb";
|
|
||||||
inherit hash;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -85,6 +87,7 @@ let
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
dpkg
|
dpkg
|
||||||
@ -92,7 +95,13 @@ let
|
|||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ libxshmfence ] ++ atomEnv.packages;
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
mesa
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
runHook preUnpack
|
runHook preUnpack
|
||||||
@ -132,8 +141,7 @@ let
|
|||||||
inherit pname version meta;
|
inherit pname version meta;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/wireapp/wire-desktop/releases/download/"
|
url = "https://github.com/wireapp/wire-desktop/releases/download/macos%2F${version}/Wire.pkg";
|
||||||
+ "macos%2F${version}/Wire.pkg";
|
|
||||||
inherit hash;
|
inherit hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
{ atomEnv
|
{ autoPatchelfHook
|
||||||
, autoPatchelfHook
|
|
||||||
, squashfsTools
|
, squashfsTools
|
||||||
|
, alsa-lib
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, stdenv
|
, stdenv
|
||||||
, lib
|
, lib
|
||||||
|
, libsecret
|
||||||
|
, mesa
|
||||||
, udev
|
, udev
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, libxshmfence
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -41,9 +42,14 @@ stdenv.mkDerivation rec {
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
||||||
nativeBuildInputs = [ autoPatchelfHook squashfsTools makeWrapper wrapGAppsHook ];
|
nativeBuildInputs = [ autoPatchelfHook squashfsTools makeWrapper wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = atomEnv.packages ++ [ libxshmfence ];
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
libsecret
|
||||||
|
mesa
|
||||||
|
];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
runHook preUnpack
|
runHook preUnpack
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, lib, unzip, autoPatchelfHook
|
{ stdenv, lib, unzip, autoPatchelfHook
|
||||||
, fetchurl, atomEnv, makeWrapper
|
, fetchurl, makeWrapper
|
||||||
, makeDesktopItem, copyDesktopItems, wrapGAppsHook, libxshmfence
|
, alsa-lib, mesa, nss, nspr, systemd
|
||||||
|
, makeDesktopItem, copyDesktopItems, wrapGAppsHook
|
||||||
, metaCommon
|
, metaCommon
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -24,6 +25,7 @@ let
|
|||||||
|
|
||||||
src = fetchurl linuxSource;
|
src = fetchurl linuxSource;
|
||||||
|
|
||||||
|
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
makeWrapper
|
makeWrapper
|
||||||
@ -31,7 +33,14 @@ let
|
|||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = atomEnv.packages ++ [ libxshmfence ];
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
mesa
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
stdenv.cc.cc
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
@ -64,8 +73,9 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# LD_LIBRARY_PATH "shouldn't" be needed, remove when possible :)
|
# LD_LIBRARY_PATH "shouldn't" be needed, remove when possible :)
|
||||||
|
# Error: libstdc++.so.6: cannot open shared object file: No such file or directory
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${atomEnv.libPath})
|
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs})
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
@ -1,29 +1,9 @@
|
|||||||
{ lib, stdenv
|
{ callPackage }:
|
||||||
, libXScrnSaver
|
|
||||||
, makeWrapper
|
|
||||||
, fetchurl
|
|
||||||
, wrapGAppsHook
|
|
||||||
, glib
|
|
||||||
, gtk3
|
|
||||||
, unzip
|
|
||||||
, atomEnv
|
|
||||||
, libuuid
|
|
||||||
, at-spi2-atk
|
|
||||||
, at-spi2-core
|
|
||||||
, libdrm
|
|
||||||
, mesa
|
|
||||||
, libxkbcommon
|
|
||||||
, libappindicator-gtk3
|
|
||||||
, libxshmfence
|
|
||||||
, libglvnd
|
|
||||||
, wayland
|
|
||||||
}@args:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
mkElectron = import ./generic.nix args;
|
mkElectron = callPackage ./generic.nix { };
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
electron-bin = electron_26-bin;
|
electron-bin = electron_26-bin;
|
||||||
|
|
||||||
electron_10-bin = mkElectron "10.4.7" {
|
electron_10-bin = mkElectron "10.4.7" {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, libXScrnSaver
|
, libXScrnSaver
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, fetchurl
|
, fetchurl
|
||||||
@ -6,17 +7,23 @@
|
|||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
, unzip
|
, unzip
|
||||||
, atomEnv
|
|
||||||
, libuuid
|
|
||||||
, at-spi2-atk
|
, at-spi2-atk
|
||||||
, at-spi2-core
|
|
||||||
, libdrm
|
, libdrm
|
||||||
, mesa
|
, mesa
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
, libappindicator-gtk3
|
|
||||||
, libxshmfence
|
, libxshmfence
|
||||||
, libglvnd
|
, libglvnd
|
||||||
, wayland
|
, alsa-lib
|
||||||
|
, cairo
|
||||||
|
, cups
|
||||||
|
, dbus
|
||||||
|
, expat
|
||||||
|
, gdk-pixbuf
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
|
, xorg
|
||||||
|
, pango
|
||||||
|
, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
version: hashes:
|
version: hashes:
|
||||||
@ -64,13 +71,35 @@ let
|
|||||||
passthru.headers = headersFetcher version hashes.headers;
|
passthru.headers = headersFetcher version hashes.headers;
|
||||||
};
|
};
|
||||||
|
|
||||||
electronLibPath = with lib; makeLibraryPath (
|
electronLibPath = lib.makeLibraryPath ([
|
||||||
[ libuuid at-spi2-atk at-spi2-core libappindicator-gtk3 wayland ]
|
alsa-lib
|
||||||
++ optionals (versionAtLeast version "9.0.0") [ libdrm mesa ]
|
at-spi2-atk
|
||||||
++ optionals (versionOlder version "10.0.0") [ libXScrnSaver ]
|
cairo
|
||||||
++ optionals (versionAtLeast version "11.0.0") [ libxkbcommon ]
|
cups
|
||||||
++ optionals (versionAtLeast version "12.0.0") [ libxshmfence ]
|
dbus
|
||||||
++ optionals (versionAtLeast version "17.0.0") [ libglvnd ]
|
expat
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libxkbfile
|
||||||
|
pango
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
systemd
|
||||||
|
]
|
||||||
|
++ lib.optionals (lib.versionAtLeast version "9.0.0") [ libdrm mesa ]
|
||||||
|
++ lib.optionals (lib.versionOlder version "10.0.0") [ libXScrnSaver ]
|
||||||
|
++ lib.optionals (lib.versionAtLeast version "11.0.0") [ libxkbcommon ]
|
||||||
|
++ lib.optionals (lib.versionAtLeast version "12.0.0") [ libxshmfence ]
|
||||||
|
++ lib.optionals (lib.versionAtLeast version "17.0.0") [ libglvnd ]
|
||||||
);
|
);
|
||||||
|
|
||||||
linux = {
|
linux = {
|
||||||
@ -95,7 +124,7 @@ let
|
|||||||
postFixup = ''
|
postFixup = ''
|
||||||
patchelf \
|
patchelf \
|
||||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${atomEnv.libPath}:${electronLibPath}:$out/libexec/electron" \
|
--set-rpath "${electronLibPath}:$out/libexec/electron" \
|
||||||
$out/libexec/electron/.electron-wrapped \
|
$out/libexec/electron/.electron-wrapped \
|
||||||
${lib.optionalString (lib.versionAtLeast version "15.0.0") "$out/libexec/electron/.chrome_crashpad_handler-wrapped" }
|
${lib.optionalString (lib.versionAtLeast version "15.0.0") "$out/libexec/electron/.chrome_crashpad_handler-wrapped" }
|
||||||
'';
|
'';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ atomEnv
|
{ autoPatchelfHook
|
||||||
, autoPatchelfHook
|
|
||||||
, dpkg
|
, dpkg
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
@ -8,6 +7,11 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, lib
|
, lib
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, alsa-lib
|
||||||
|
, nss
|
||||||
|
, nspr
|
||||||
|
, systemd
|
||||||
|
, xorg
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
@ -39,6 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
|
# TODO: migrate off autoPatchelfHook and use nixpkgs' electron
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
dpkg
|
dpkg
|
||||||
@ -46,7 +51,14 @@ stdenv.mkDerivation rec {
|
|||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = atomEnv.packages;
|
buildInputs = [
|
||||||
|
alsa-lib
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
xorg.libXtst
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
# The deb file contains a setuid binary, so 'dpkg -x' doesn't work here
|
# The deb file contains a setuid binary, so 'dpkg -x' doesn't work here
|
||||||
|
@ -109,6 +109,10 @@ mapAliases ({
|
|||||||
asterisk_19 = throw "asterisk_19: Asterisk 19 is end of life and has been removed"; # Added 2023-04-19
|
asterisk_19 = throw "asterisk_19: Asterisk 19 is end of life and has been removed"; # Added 2023-04-19
|
||||||
at_spi2_atk = throw "'at_spi2_atk' has been renamed to/replaced by 'at-spi2-atk'"; # Converted to throw 2022-02-22
|
at_spi2_atk = throw "'at_spi2_atk' has been renamed to/replaced by 'at-spi2-atk'"; # Converted to throw 2022-02-22
|
||||||
at_spi2_core = throw "'at_spi2_core' has been renamed to/replaced by 'at-spi2-core'"; # Converted to throw 2022-02-22
|
at_spi2_core = throw "'at_spi2_core' has been renamed to/replaced by 'at-spi2-core'"; # Converted to throw 2022-02-22
|
||||||
|
atom = throw "'atom' has been removed because discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01
|
||||||
|
atom-beta = throw "'atom-beta' has been removed because discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01
|
||||||
|
atomEnv = throw "'atomEnv' has been removed because 'atom' is discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01
|
||||||
|
atomPackages = throw "'atomPackages' has been removed because 'atom' is discontinued and deprecated. Consider using 'pulsar', a maintained fork"; # Added 2023-10-01
|
||||||
aucdtect = throw "aucdtect: Upstream no longer provides download urls"; # Added 2020-12-26
|
aucdtect = throw "aucdtect: Upstream no longer provides download urls"; # Added 2020-12-26
|
||||||
audacity-gtk2 = throw "'audacity-gtk2' has been removed to/replaced by 'audacity'"; # Added 2022-10-09
|
audacity-gtk2 = throw "'audacity-gtk2' has been removed to/replaced by 'audacity'"; # Added 2022-10-09
|
||||||
audacity-gtk3 = throw "'audacity-gtk3' has been removed to/replaced by 'audacity'"; # Added 2022-10-09
|
audacity-gtk3 = throw "'audacity-gtk3' has been removed to/replaced by 'audacity'"; # Added 2022-10-09
|
||||||
|
@ -30634,12 +30634,6 @@ with pkgs;
|
|||||||
|
|
||||||
atlassian-cli = callPackage ../applications/office/atlassian-cli { };
|
atlassian-cli = callPackage ../applications/office/atlassian-cli { };
|
||||||
|
|
||||||
atomEnv = callPackage ../applications/editors/atom/env.nix { };
|
|
||||||
|
|
||||||
atomPackages = dontRecurseIntoAttrs (callPackage ../applications/editors/atom { });
|
|
||||||
|
|
||||||
inherit (atomPackages) atom atom-beta;
|
|
||||||
|
|
||||||
pulsar = callPackage ../applications/editors/pulsar { };
|
pulsar = callPackage ../applications/editors/pulsar { };
|
||||||
|
|
||||||
asap = callPackage ../tools/audio/asap { };
|
asap = callPackage ../tools/audio/asap { };
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
packageOverrides = super: with super; lib.mapAttrs (_: set: recurseIntoAttrs set) {
|
packageOverrides = super: with super; lib.mapAttrs (_: set: recurseIntoAttrs set) {
|
||||||
inherit (super)
|
inherit (super)
|
||||||
apacheHttpdPackages
|
apacheHttpdPackages
|
||||||
atomPackages
|
|
||||||
fdbPackages
|
fdbPackages
|
||||||
fusePackages
|
fusePackages
|
||||||
gns3Packages
|
gns3Packages
|
||||||
|
Loading…
Reference in New Issue
Block a user