diff options
author | PedroHLC ☭ <root@pedrohlc.com> | 2022-07-04 19:34:59 -0300 |
---|---|---|
committer | PedroHLC ☭ <root@pedrohlc.com> | 2022-07-05 10:07:06 -0300 |
commit | aacc2f67f860fc744e875ca366a2d8fd2b8f4c07 (patch) | |
tree | 5c898e2fd15971e61213050246d3c7db3a63b017 /pkgs/applications/networking/instant-messengers/discord | |
parent | 5bb06a6970f5a2927bd412faeed17ac0d157553d (diff) |
openasar: remove unzip hotfix
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/discord')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/discord/openasar.nix | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/pkgs/applications/networking/instant-messengers/discord/openasar.nix b/pkgs/applications/networking/instant-messengers/discord/openasar.nix index ba4b5f0ffd4e9..664fe622ac3bc 100644 --- a/pkgs/applications/networking/instant-messengers/discord/openasar.nix +++ b/pkgs/applications/networking/instant-messengers/discord/openasar.nix @@ -1,15 +1,5 @@ { lib, stdenv, fetchFromGitHub, nodejs, bash, nodePackages, unzip }: -let - # OpenAsar fails with default unzip, throwing "lchmod (file attributes) error: Operation not supported" - unzipFix = - if stdenv.isLinux then - unzip.overrideAttrs (oldAttrs: { - buildFlags = oldAttrs.buildFlags ++ [ "LOCAL_UNZIP=-DNO_LCHMOD" ]; - }) - else - unzip; -in stdenv.mkDerivation rec { pname = "openasar"; version = "unstable-2022-06-27"; @@ -24,7 +14,7 @@ stdenv.mkDerivation rec { postPatch = '' # Hardcode unzip path substituteInPlace ./src/updater/moduleUpdater.js \ - --replace \'unzip\' \'${unzipFix}/bin/unzip\' + --replace \'unzip\' \'${unzip}/bin/unzip\' # Remove auto-update feature echo "module.exports = async () => log('AsarUpdate', 'Removed');" > ./src/asarUpdate.js ''; |