Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
86 lines
1.8 KiB
Nix
86 lines
1.8 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
fetchurl,
|
|
ffmpeg_4,
|
|
fontconfig,
|
|
gtk2,
|
|
lib,
|
|
libconfig,
|
|
libGL,
|
|
libXpm,
|
|
makeFontsConf,
|
|
makeWrapper,
|
|
nanum,
|
|
openal,
|
|
pkg-config,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sview";
|
|
version = "20_08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gkv311";
|
|
repo = "sview";
|
|
tag = version;
|
|
hash = "sha256-mbEacdBQchziXoZ5vJUiEpa/iHeXeaozte2aXs50/Fo=";
|
|
};
|
|
|
|
droidSansFallback = fetchurl {
|
|
url = "https://raw.githubusercontent.com/aosp-mirror/platform_frameworks_base/2d8961d99f3aa559dbd4b78b716ab36c456b43e1/data/fonts/DroidSansFallbackFull.ttf";
|
|
sha256 = "sha256-I5IBVTBDi6/Ejt/ErubZ3iOH9iemE02Ks9/MmdIcgkA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
ffmpeg_4
|
|
gtk2
|
|
libconfig
|
|
libGL
|
|
libXpm
|
|
openal
|
|
];
|
|
|
|
fontsConf = makeFontsConf {
|
|
fontDirectories = [
|
|
nanum
|
|
"placeholder"
|
|
];
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
make install APP_PREFIX=$out DISABLE_UPDATER=1
|
|
mkdir -p $out/share/sView/fonts
|
|
cp ${droidSansFallback} $out/share/sView/fonts/DroidSansFallbackFull.ttf
|
|
cp '${fontsConf}' $out/share/sView/fonts/fonts.conf
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/share/sView/fonts/fonts.conf \
|
|
--replace-warn "placeholder" "$out/share/sView/fonts/";
|
|
wrapProgram $out/bin/sView \
|
|
--set StShare $out/share/sView \
|
|
--set FONTCONFIG_FILE $out/share/sView/fonts/fonts.conf
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Viewer for 3D stereoscopic videos and images";
|
|
homepage = "https://www.sview.ru/en/";
|
|
license = with licenses; [
|
|
cc-by-40
|
|
gpl3Only
|
|
asl20
|
|
];
|
|
maintainers = with maintainers; [ mx2uller ];
|
|
mainProgram = "sView";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|