Merge pull request #224124 from chz101/submit/ankibin

This commit is contained in:
Norbert Melzer 2023-04-04 08:26:59 +02:00 committed by GitHub
commit 28bd70b571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, lib, buildFHSUserEnv, appimageTools, writeShellScript, anki, undmg, zstd }:
{ fetchurl, stdenv, lib, buildFHSUserEnv, appimageTools, writeShellScript, anki, undmg, zstd, commandLineArgs ? [] }:
let
pname = "anki-bin";
@ -57,7 +57,7 @@ let
targetPkgs = pkgs: (with pkgs; [ xorg.libxkbfile krb5 ]);
runScript = writeShellScript "anki-wrapper.sh" ''
exec ${unpacked}/bin/anki
exec ${unpacked}/bin/anki ${ lib.strings.escapeShellArgs commandLineArgs }
'';
extraInstallCommands = ''