Merge pull request #291591 from atorres1985-contrib/jasper

jasper: split outputs

authored by Guillaume Girol and committed by GitHub 06a42492 366545aa

+27 -3
+27 -3
pkgs/by-name/ja/jasper/package.nix
··· 1 { lib 2 - , stdenv 3 - , fetchFromGitHub 4 , cmake 5 , pkg-config 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { ··· 16 hash = "sha256-SE3zB+8zZuuT+W6QYTuQhM+dBgYuFzYK4a7QaquGB60="; 17 }; 18 19 - outputs = [ "out" "doc" "man" ]; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 ]; 25 26 # Since "build" already exists and is populated, cmake tries to use it, 27 # throwing uncomprehensible error messages... 28 cmakeBuildDir = "build-directory"; 29 cmakeFlags = [ 30 (lib.cmakeBool "ALLOW_IN_SOURCE_BUILD" true) 31 ]; 32 33 strictDeps = true; ··· 53 for most computing platforms when JasPer was first developed, circa 1999. 54 ''; 55 license = lib.licenses.mit; 56 maintainers = with lib.maintainers; [ AndersonTorres ]; 57 platforms = lib.platforms.unix; 58
··· 1 { lib 2 , cmake 3 + , fetchFromGitHub 4 + , freeglut 5 + , libGL 6 + , libheif 7 + , libjpeg 8 , pkg-config 9 + , stdenv 10 + , enableHEIFCodec ? true 11 + , enableJPGCodec ? true 12 + , enableOpenGL ? true 13 }: 14 15 stdenv.mkDerivation (finalAttrs: { ··· 23 hash = "sha256-SE3zB+8zZuuT+W6QYTuQhM+dBgYuFzYK4a7QaquGB60="; 24 }; 25 26 + outputs = [ "out" "dev" "doc" "lib" "man" ]; 27 28 nativeBuildInputs = [ 29 cmake 30 pkg-config 31 ]; 32 33 + buildInputs = [ 34 + ] ++ lib.optionals enableHEIFCodec [ 35 + libheif 36 + ] ++ lib.optionals enableJPGCodec [ 37 + libjpeg 38 + ] ++ lib.optionals enableOpenGL [ 39 + freeglut 40 + libGL 41 + ]; 42 + 43 # Since "build" already exists and is populated, cmake tries to use it, 44 # throwing uncomprehensible error messages... 45 cmakeBuildDir = "build-directory"; 46 cmakeFlags = [ 47 (lib.cmakeBool "ALLOW_IN_SOURCE_BUILD" true) 48 + (lib.cmakeBool "JAS_ENABLE_HEIC_CODEC" enableHEIFCodec) 49 + (lib.cmakeBool "JAS_INCLUDE_HEIC_CODEC" enableHEIFCodec) 50 + (lib.cmakeBool "JAS_ENABLE_JPG_CODEC" enableJPGCodec) 51 + (lib.cmakeBool "JAS_INCLUDE_JPG_CODEC" enableJPGCodec) 52 + (lib.cmakeBool "JAS_ENABLE_MIF_CODEC" false) # Dangerous! 53 + (lib.cmakeBool "JAS_ENABLE_OPENGL" enableOpenGL) 54 ]; 55 56 strictDeps = true; ··· 76 for most computing platforms when JasPer was first developed, circa 1999. 77 ''; 78 license = lib.licenses.mit; 79 + mainProgram = "jasper"; 80 maintainers = with lib.maintainers; [ AndersonTorres ]; 81 platforms = lib.platforms.unix; 82