Loading pkgs/by-name/op/openclonk/package.nix +34 −27 Original line number Diff line number Diff line { lib, stdenv, # sources fetchurl, fetchFromGitHub, fetchDebianPatch, # nativeBuildInputs cmake, pkg-config, SDL2, libvorbis, libogg, libjpeg, libpng, gcc-unwrapped, # buildInputs curl, freealut, freetype, glew, tinyxml, openal, libb2, libepoxy, curl, freealut, libjpeg, libogg, libpng, libvorbis, openal, readline, libb2, gcc-unwrapped, enableSoundtrack ? false, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther SDL2, tinyxml, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther enableSoundtrack ? false, }: let Loading Loading @@ -53,9 +62,7 @@ stdenv.mkDerivation { enableParallelInstalling = false; postInstall = '''' + lib.optionalString enableSoundtrack '' postInstall = lib.optionalString enableSoundtrack '' ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg ''; Loading @@ -65,20 +72,20 @@ stdenv.mkDerivation { ]; buildInputs = [ SDL2 libvorbis libogg libjpeg libpng curl freealut freetype glew tinyxml openal freealut libb2 libepoxy curl libjpeg libogg libpng libvorbis openal readline libb2 SDL2 tinyxml ]; cmakeFlags = [ Loading Loading
pkgs/by-name/op/openclonk/package.nix +34 −27 Original line number Diff line number Diff line { lib, stdenv, # sources fetchurl, fetchFromGitHub, fetchDebianPatch, # nativeBuildInputs cmake, pkg-config, SDL2, libvorbis, libogg, libjpeg, libpng, gcc-unwrapped, # buildInputs curl, freealut, freetype, glew, tinyxml, openal, libb2, libepoxy, curl, freealut, libjpeg, libogg, libpng, libvorbis, openal, readline, libb2, gcc-unwrapped, enableSoundtrack ? false, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther SDL2, tinyxml, # Enable the "Open Clonk Soundtrack - Explorers Journey" by David Oerther enableSoundtrack ? false, }: let Loading Loading @@ -53,9 +62,7 @@ stdenv.mkDerivation { enableParallelInstalling = false; postInstall = '''' + lib.optionalString enableSoundtrack '' postInstall = lib.optionalString enableSoundtrack '' ln -sv ${soundtrack_src} $out/share/games/openclonk/Music.ocg ''; Loading @@ -65,20 +72,20 @@ stdenv.mkDerivation { ]; buildInputs = [ SDL2 libvorbis libogg libjpeg libpng curl freealut freetype glew tinyxml openal freealut libb2 libepoxy curl libjpeg libogg libpng libvorbis openal readline libb2 SDL2 tinyxml ]; cmakeFlags = [ Loading