slimserver: add bin symlink and meta.mainProgram
This commit is contained in:
parent
713a7d7fa0
commit
431b9f23ad
@ -54,7 +54,7 @@ in {
|
||||
serviceConfig = {
|
||||
User = "slimserver";
|
||||
# Issue 40589: Disable broken image/video support (audio still works!)
|
||||
ExecStart = "${cfg.package}/slimserver.pl --logdir ${cfg.dataDir}/logs --prefsdir ${cfg.dataDir}/prefs --cachedir ${cfg.dataDir}/cache --noimage --novideo";
|
||||
ExecStart = "${lib.getExe cfg.package} --logdir ${cfg.dataDir}/logs --prefsdir ${cfg.dataDir}/prefs --cachedir ${cfg.dataDir}/cache --noimage --novideo";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -59,6 +59,8 @@ perlPackages.buildPerlPackage rec {
|
||||
wrapProgram $out/slimserver.pl \
|
||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ zlib stdenv.cc.cc.lib ]}" \
|
||||
--prefix PATH : "${lib.makeBinPath [ lame flac faad2 sox monkeysAudio wavpack ]}"
|
||||
mkdir $out/bin
|
||||
ln -s $out/slimserver.pl $out/bin/slimserver
|
||||
'';
|
||||
|
||||
outputs = [ "out" ];
|
||||
@ -73,6 +75,7 @@ perlPackages.buildPerlPackage rec {
|
||||
# the firmware is not under a free license, but not included in the default package
|
||||
# https://github.com/Logitech/slimserver/blob/public/8.3/License.txt
|
||||
license = if enableUnfreeFirmware then licenses.unfree else licenses.gpl2Only;
|
||||
mainProgram = "slimserver";
|
||||
maintainers = with maintainers; [ adamcstephens jecaro ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user