lol

sview: init at 20_08

+85
+85
pkgs/by-name/sv/sview/package.nix
··· 1 + { 2 + fetchFromGitHub, 3 + fetchurl, 4 + ffmpeg_4, 5 + fontconfig, 6 + gtk2, 7 + lib, 8 + libconfig, 9 + libGL, 10 + libXpm, 11 + makeFontsConf, 12 + makeWrapper, 13 + nanum, 14 + openal, 15 + pkg-config, 16 + stdenv, 17 + }: 18 + 19 + stdenv.mkDerivation rec { 20 + pname = "sview"; 21 + version = "20_08"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "gkv311"; 25 + repo = "sview"; 26 + tag = version; 27 + hash = "sha256-mbEacdBQchziXoZ5vJUiEpa/iHeXeaozte2aXs50/Fo="; 28 + }; 29 + 30 + droidSansFallback = fetchurl { 31 + url = "https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/2d8961d99f3aa559dbd4b78b716ab36c456b43e1/data/fonts/DroidSansFallbackFull.ttf"; 32 + sha256 = "sha256-I5IBVTBDi6/Ejt/ErubZ3iOH9iemE02Ks9/MmdIcgkA="; 33 + }; 34 + 35 + nativeBuildInputs = [ 36 + makeWrapper 37 + pkg-config 38 + ]; 39 + 40 + buildInputs = [ 41 + ffmpeg_4 42 + gtk2 43 + libconfig 44 + libGL 45 + libXpm 46 + openal 47 + ]; 48 + 49 + fontsConf = makeFontsConf { 50 + fontDirectories = [ 51 + nanum 52 + "placeholder" 53 + ]; 54 + }; 55 + 56 + installPhase = '' 57 + runHook preInstall 58 + make install APP_PREFIX=$out DISABLE_UPDATER=1 59 + mkdir -p $out/share/sView/fonts 60 + cp ${droidSansFallback} $out/share/sView/fonts/DroidSansFallbackFull.ttf 61 + cp '${fontsConf}' $out/share/sView/fonts/fonts.conf 62 + runHook postInstall 63 + ''; 64 + 65 + postFixup = '' 66 + substituteInPlace $out/share/sView/fonts/fonts.conf \ 67 + --replace-warn "placeholder" "$out/share/sView/fonts/"; 68 + wrapProgram $out/bin/sView \ 69 + --set StShare $out/share/sView \ 70 + --set FONTCONFIG_FILE $out/share/sView/fonts/fonts.conf 71 + ''; 72 + 73 + meta = with lib; { 74 + description = "Viewer for 3D stereoscopic videos and images"; 75 + homepage = "https://www.sview.ru/en/"; 76 + license = with licenses; [ 77 + cc-by-40 78 + gpl3Only 79 + asl20 80 + ]; 81 + maintainers = with maintainers; [ mx2uller ]; 82 + mainProgram = "sView"; 83 + platforms = platforms.linux; 84 + }; 85 + }