Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sview: init at 20_08 #344922

Merged
merged 2 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14508,6 +14508,12 @@
githubId = 38578268;
name = "Morgan Wolfe";
};
mx2uller = {
email = "[email protected]";
github = "mx2uller";
githubId = 93703653;
name = "Marko Müller";
};
mxkrsv = {
email = "[email protected]";
github = "mxkrsv";
Expand Down
85 changes: 85 additions & 0 deletions pkgs/by-name/sv/sview/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
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
wolfgangwalther marked this conversation as resolved.
Show resolved Hide resolved
openal
];

fontsConf = makeFontsConf {
fontDirectories = [
nanum
"placeholder"
];
};

installPhase = ''
wolfgangwalther marked this conversation as resolved.
Show resolved Hide resolved
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;
FliegendeWurst marked this conversation as resolved.
Show resolved Hide resolved
};
}
Loading