mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
audiobookshelf: fix reference to getopt in wrapper
This commit is contained in:
parent
57a0c58e72
commit
bbc6174eaa
@ -1,4 +1,17 @@
|
||||
{ lib, stdenv, pkgs, fetchFromGitHub, runCommand, buildNpmPackage, nodejs_18, tone, ffmpeg-full, util-linux, python3 }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
pkgs,
|
||||
fetchFromGitHub,
|
||||
runCommand,
|
||||
buildNpmPackage,
|
||||
nodejs_18,
|
||||
tone,
|
||||
ffmpeg-full,
|
||||
util-linux,
|
||||
python3,
|
||||
getopt
|
||||
}:
|
||||
|
||||
let
|
||||
nodejs = nodejs_18;
|
||||
@ -28,7 +41,7 @@ let
|
||||
};
|
||||
|
||||
wrapper = import ./wrapper.nix {
|
||||
inherit stdenv ffmpeg-full tone pname nodejs;
|
||||
inherit stdenv ffmpeg-full tone pname nodejs getopt;
|
||||
};
|
||||
|
||||
in buildNpmPackage {
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, ffmpeg-full, tone, pname, nodejs }: ''
|
||||
{ stdenv, ffmpeg-full, tone, pname, nodejs, getopt }: ''
|
||||
#!${stdenv.shell}
|
||||
|
||||
port=8000
|
||||
@ -7,7 +7,7 @@
|
||||
metadata=$(pwd)/metadata
|
||||
|
||||
LONGOPTS=host:,port:,config:,metadata:,help
|
||||
args=$(getopt -l "$LONGOPTS" -o h -- "$@")
|
||||
args=$(${getopt}/bin/getopt -l "$LONGOPTS" -o h -- "$@")
|
||||
|
||||
eval set -- "$args"
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
;;
|
||||
--help|-h)
|
||||
echo "Usage: audiobookshelf [--host <host>] [--port <port>] [--metadata <dir>] [--config <dir>]"
|
||||
shift
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user