aboutsummaryrefslogtreecommitdiff
path: root/discord.nix
diff options
context:
space:
mode:
authorTom Harley2020-12-30 10:52:09 +0000
committerTom Harley2020-12-30 10:52:41 +0000
commit68cf8766e2636a50b0a660368b18426e2c12d487 (patch)
treef7f73e3a93e36ca544b14e6fdb3bd31073262424 /discord.nix
downloadhome-manager-68cf8766e2636a50b0a660368b18426e2c12d487.tar.gz
home-manager-68cf8766e2636a50b0a660368b18426e2c12d487.zip

Initial commit

Diffstat (limited to 'discord.nix')
-rw-r--r--discord.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/discord.nix b/discord.nix
new file mode 100644
index 0000000..15fe95a
--- /dev/null
+++ b/discord.nix
@@ -0,0 +1,35 @@
+{ config, lib, pkgs, ... }:
+
+with pkgs;
+
+let
+ binaryName = "discord";
+
+ mydiscord =
+ (discord.override rec {
+
+ version = "0.0.13";
+ src = fetchurl {
+ url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
+ sha256 = "0d5z6cbj9dg3hjw84pyg75f8dwdvi2mqxb9ic8dfqzk064ssiv7y";
+ };
+
+ nss = nss_latest;
+ inherit binaryName;
+
+ }).overrideAttrs (old: {
+
+ preInstallPhases = [ "preInstall" ];
+
+ preInstall = ''
+ mv ./Discord ./${binaryName}
+ '';
+
+ });
+
+in
+ {
+ home.packages = [
+ mydiscord
+ ];
+ }