mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
155 current 2024-05-29 15:28:39 24.11.20240524.bfb7a88 6.9.1-zen1 *
This commit is contained in:
parent
c4bf2df314
commit
28ec440896
5 changed files with 38 additions and 102 deletions
|
@ -34,7 +34,7 @@ in
|
||||||
nodejs_22
|
nodejs_22
|
||||||
];
|
];
|
||||||
gui = with pkgs;[
|
gui = with pkgs;[
|
||||||
pkgs.discord
|
cpkg.discord
|
||||||
xsel
|
xsel
|
||||||
spotify
|
spotify
|
||||||
pulseaudioFull
|
pulseaudioFull
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs }: rec{
|
{ pkgs }: rec{
|
||||||
# discord = nixpkgs.callPackage ./discord { };
|
# discord = nixpkgs.callPackage ./discord { };
|
||||||
discord = pkgs.callPackage ./discord/default.nix { };
|
discord = pkgs.callPackage ./discord/default.nix { inherit vencord; };
|
||||||
vesktop = pkgs.callPackage ./vesktop/default.nix { inherit vencord; };
|
vesktop = pkgs.callPackage ./vesktop/default.nix { inherit vencord; };
|
||||||
vencord = pkgs.callPackage ./vencord/default.nix { };
|
vencord = pkgs.callPackage ./vencord/default.nix { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,53 +1,53 @@
|
||||||
{ branch ? "stable", callPackage, fetchurl, lib, stdenv }:
|
{vencord, branch ? "stable", callPackage, fetchurl, lib, stdenv }:
|
||||||
let
|
let
|
||||||
versions =
|
versions =
|
||||||
if stdenv.isLinux then {
|
if stdenv.isLinux then {
|
||||||
stable = "0.0.50";
|
stable = "0.0.53";
|
||||||
ptb = "0.0.80";
|
ptb = "0.0.84";
|
||||||
canary = "0.0.357";
|
canary = "0.0.382";
|
||||||
development = "0.0.17";
|
development = "0.0.18";
|
||||||
} else {
|
} else {
|
||||||
stable = "0.0.301";
|
stable = "0.0.303";
|
||||||
ptb = "0.0.109";
|
ptb = "0.0.113";
|
||||||
canary = "0.0.477";
|
canary = "0.0.492";
|
||||||
development = "0.0.39";
|
development = "0.0.40";
|
||||||
};
|
};
|
||||||
version = versions.${branch};
|
version = versions.${branch};
|
||||||
srcs = rec {
|
srcs = rec {
|
||||||
x86_64-linux = {
|
x86_64-linux = {
|
||||||
stable = fetchurl {
|
stable = fetchurl {
|
||||||
url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
|
url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
|
||||||
hash = "sha256-6VXdVLk7Z8NGQMiSdgBRd8NIueUktkId6BXYKNABb+4=";
|
hash = "sha256-HD8bDFUV3YGk/t3Rbm26nXWDvUjjIf4ykdO6YGDtvTU=";
|
||||||
};
|
};
|
||||||
ptb = fetchurl {
|
ptb = fetchurl {
|
||||||
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
|
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
|
||||||
hash = "sha256-y/ntnHIYcY35Jszh0PrFy395eJ5dBWwLNpzHMoSZuNA=";
|
hash = "sha256-0bOsmy2ldZT7S4tVOkihE5eLiujXC/ugF8CKXfBXHNU=";
|
||||||
};
|
};
|
||||||
canary = fetchurl {
|
canary = fetchurl {
|
||||||
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
||||||
hash = "sha256-sDwC5kPzAfvQmsrq6M/GPFtUaT9pNAEB4uGI5Mn3oXs=";
|
hash = "sha256-MXMq4V+21KPHoCUs5x1rNRbkfw6+3cF7xSSNguiqOfc=";
|
||||||
};
|
};
|
||||||
development = fetchurl {
|
development = fetchurl {
|
||||||
url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz";
|
url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz";
|
||||||
hash = "sha256-AmbaMVi/or+9QLuQO5u5btgKeKdrfo7bzZgGLILwgqo=";
|
hash = "sha256-SoJ4/jXl0axQyeqv8CPSzM+lBsYq/QelHctRAeoscdA=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
x86_64-darwin = {
|
x86_64-darwin = {
|
||||||
stable = fetchurl {
|
stable = fetchurl {
|
||||||
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
|
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
|
||||||
hash = "sha256-h7C1wCKtUGcMFUhoKVdD7Vq9TGUaXfmjlVhwmRdhqYw=";
|
hash = "sha256-B4r0W//d3761ufQr4PAt4ZuPMrOC7Zfo8Q3lHqKxkJ0=";
|
||||||
};
|
};
|
||||||
ptb = fetchurl {
|
ptb = fetchurl {
|
||||||
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
|
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
|
||||||
hash = "sha256-xxLnzELuI0X2r/weP1K2Bb51uRh1JjR72p7cXzy12Kc=";
|
hash = "sha256-hdT33jK0nHvY3rIh9i1eDq5j46xS9xInRxzGCUP/hi8=";
|
||||||
};
|
};
|
||||||
canary = fetchurl {
|
canary = fetchurl {
|
||||||
url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg";
|
url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg";
|
||||||
hash = "sha256-xEDtEtZNhOTtz+zRLLQBSeLbntlVAVQsocAGyAaVePM=";
|
hash = "sha256-74XQu4PGW3eW4wPICGsAVlR4SQkDXJWZ1p/G7Bwq950=";
|
||||||
};
|
};
|
||||||
development = fetchurl {
|
development = fetchurl {
|
||||||
url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg";
|
url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg";
|
||||||
hash = "sha256-nZV9LK3eGpXK/2wQKJBn3K2Ud6uBk8aammkeE00rWx0=";
|
hash = "sha256-uPz3uWPAqp3JeL9E+coMrb2Hc+Zn0YGF9Jw3BTKYRlw=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
aarch64-darwin = x86_64-darwin;
|
aarch64-darwin = x86_64-darwin;
|
||||||
|
@ -76,7 +76,7 @@ let
|
||||||
(_: value:
|
(_: value:
|
||||||
callPackage package (value
|
callPackage package (value
|
||||||
// {
|
// {
|
||||||
inherit src version openasar branch;
|
inherit src version openasar branch vencord;
|
||||||
meta = meta // { mainProgram = value.binaryName; };
|
meta = meta // { mainProgram = value.binaryName; };
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,67 +1,17 @@
|
||||||
{ pname
|
{ pname, version, src, meta, binaryName, desktopName, autoPatchelfHook
|
||||||
, version
|
, makeDesktopItem, lib, stdenv, wrapGAppsHook, makeShellWrapper, alsa-lib, at-spi2-atk
|
||||||
, src
|
, at-spi2-core, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk-pixbuf
|
||||||
, meta
|
, glib, gtk3, libcxx, libdrm, libglvnd, libnotify, libpulseaudio, libuuid, libX11
|
||||||
, binaryName
|
, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext, libXfixes
|
||||||
, desktopName
|
, libXi, libXrandr, libXrender, libXtst, libxcb, libxshmfence, mesa, nspr, nss
|
||||||
, autoPatchelfHook
|
, pango, systemd, libappindicator-gtk3, libdbusmenu, writeScript, python3, runCommand
|
||||||
, makeDesktopItem
|
|
||||||
, lib
|
|
||||||
, stdenv
|
|
||||||
, wrapGAppsHook
|
|
||||||
, makeShellWrapper
|
|
||||||
, alsa-lib
|
|
||||||
, at-spi2-atk
|
|
||||||
, at-spi2-core
|
|
||||||
, atk
|
|
||||||
, cairo
|
|
||||||
, cups
|
|
||||||
, dbus
|
|
||||||
, expat
|
|
||||||
, fontconfig
|
|
||||||
, freetype
|
|
||||||
, gdk-pixbuf
|
|
||||||
, glib
|
|
||||||
, gtk3
|
|
||||||
, libcxx
|
|
||||||
, libdrm
|
|
||||||
, libglvnd
|
|
||||||
, libnotify
|
|
||||||
, libpulseaudio
|
|
||||||
, libuuid
|
|
||||||
, libX11
|
|
||||||
, libXScrnSaver
|
|
||||||
, libXcomposite
|
|
||||||
, libXcursor
|
|
||||||
, libXdamage
|
|
||||||
, libXext
|
|
||||||
, libXfixes
|
|
||||||
, libXi
|
|
||||||
, libXrandr
|
|
||||||
, libXrender
|
|
||||||
, libXtst
|
|
||||||
, libxcb
|
|
||||||
, libxshmfence
|
|
||||||
, mesa
|
|
||||||
, nspr
|
|
||||||
, nss
|
|
||||||
, pango
|
|
||||||
, systemd
|
|
||||||
, libappindicator-gtk3
|
|
||||||
, libdbusmenu
|
|
||||||
, writeScript
|
|
||||||
, python3
|
|
||||||
, runCommand
|
|
||||||
, libunity
|
, libunity
|
||||||
, speechd
|
, speechd
|
||||||
, wayland
|
, wayland
|
||||||
, branch
|
, branch
|
||||||
, withOpenASAR ? false
|
, withOpenASAR ? false, openasar
|
||||||
, openasar
|
, withVencord ? true, vencord
|
||||||
, withVencord ? true
|
, withTTS ? true }:
|
||||||
, vencord
|
|
||||||
, withTTS ? true
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
disableBreakingUpdates = runCommand "disable-breaking-updates.py"
|
disableBreakingUpdates = runCommand "disable-breaking-updates.py"
|
||||||
|
@ -172,30 +122,17 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
ln -s "$desktopItem/share/applications" $out/share/
|
ln -s "$desktopItem/share/applications" $out/share/
|
||||||
|
|
||||||
set -x
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cp "${./installer}" $out/opt/vencordInstaller
|
|
||||||
chmod 770 $out/opt/vencordInstaller
|
|
||||||
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
|
|
||||||
$out/opt/vencordInstaller
|
|
||||||
|
|
||||||
VENCORD_USER_DATA_DIR="/home/meyer/.config/Vencord/dist" $out/opt/vencordInstaller -location $out/opt/Discord -install
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall =
|
postInstall = lib.strings.optionalString withOpenASAR ''
|
||||||
''
|
cp -f ${openasar} $out/opt/${binaryName}/resources/app.asar
|
||||||
# set -x
|
'' + lib.strings.optionalString withVencord ''
|
||||||
# set -e
|
mv $out/opt/${binaryName}/resources/app.asar $out/opt/${binaryName}/resources/_app.asar
|
||||||
#
|
mkdir $out/opt/${binaryName}/resources/app.asar
|
||||||
# cp "${./installer}" $out/bin/vencordInstaller
|
echo '{"name":"discord","main":"index.js"}' > $out/opt/${binaryName}/resources/app.asar/package.json
|
||||||
#
|
echo 'require("${vencord}/patcher.js")' > $out/opt/${binaryName}/resources/app.asar/index.js
|
||||||
# chmod +x $out/bin/vencordInstaller
|
'';
|
||||||
# patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \
|
|
||||||
# $out/bin/vencordInstaller
|
|
||||||
# $out/bin/vencordInstaller -location $out/opt/Discord -install
|
|
||||||
'';
|
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = pname;
|
name = pname;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
/nix/store/hqr3mgpxvjjf04gjldvf3pzwjxqbswlf-vesktop-1.5.2-alpha.1
|
|
Loading…
Reference in a new issue