Skip to content

Commit

Permalink
tacentview: init at 1.0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
poperigby committed Sep 23, 2024
1 parent 01f3292 commit 049a9a3
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions pkgs/by-name/ta/tacentview/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
cmake,
fetchFromGitHub,
installShellFiles,
lib,
libGL,
ninja,
stdenv,
tacent,
xorg,
zenity,
...
}:

stdenv.mkDerivation rec {
pname = "tacentview";
version = "1.0.46";

src = fetchFromGitHub {
owner = "bluescan";
repo = "tacentview";
rev = version;
hash = "sha256-d4A26p1hmkYEZ+h6kRbHHr4QmAc3PMe3qYdkeKIRGkU=";
};

nativeBuildInputs = [
cmake
ninja
installShellFiles
];

buildInputs = [
libGL
tacent
xorg.libX11
xorg.libxcb
zenity
];

cmakeFlags = [
"-DFETCHCONTENT_SOURCE_DIR_TACENT=${tacent.src}"
"-DPACKAGE_NIX=True"
];

installPhase = ''
runHook preInstall
installBin tacentview
mkdir -p $out/share/tacentview
cp -r ../Assets $out/share/tacentview/
cp -r ../Linux/deb_template/usr/share/icons $out/share
cp -r ../Linux/deb_template/usr/share/applications $out/share
runHook postInstall
'';

postFixup = ''
patchelf --add-needed ${libGL}/lib/libGL.so.1 $out/bin/tacentview
'';

meta = {
description = "An image and texture viewer";
homepage = "https://github.com/bluescan/tacentview";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ PopeRigby ];
mainProgram = "tacentview";
platforms = lib.platforms.linux;
};
}

0 comments on commit 049a9a3

Please sign in to comment.