nixpkgs/pkgs/applications/misc/gcstar/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

75 lines
1.7 KiB
Nix

{ lib, stdenv
, fetchFromGitLab
, perlPackages
, wrapGAppsHook3
}:
stdenv.mkDerivation rec {
pname = "gcstar";
version = "1.8.0";
src = fetchFromGitLab {
owner = "Kerenoc";
repo = "GCstar";
rev = "v${version}";
sha256 = "sha256-37yjKI4l/nUzDnra1AGxDQxNafMsLi1bSifG6pz33zg=";
};
nativeBuildInputs = [ wrapGAppsHook3 ];
buildInputs = with perlPackages; [
perl
ArchiveZip
DateCalc
DateTimeFormatStrptime
Glib
Gtk3
Gtk3SimpleList
GD
GDGraph
GDText
HTMLParser
JSON
ImageExifTool
librelative
LWP
LWPProtocolHttps
MP3Info
MP3Tag
NetFreeDB
OggVorbisHeaderPurePerl
Pango
XMLSimple
XMLParser
];
installPhase = ''
runHook preInstall
cd gcstar
perl install --text --prefix=$out
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/gcstar --prefix PERL5LIB : $PERL5LIB
'';
meta = with lib; {
homepage = "https://gitlab.com/Kerenoc/GCstar";
description = "Manage your collections of movies, games, books, music and more";
mainProgram = "gcstar";
longDescription = ''
GCstar is an application for managing your collections.
It supports many types of collections, including movies, books, games, comics, stamps, coins, and many more.
You can even create your own collection type for whatever unique thing it is that you collect!
Detailed information on each item can be automatically retrieved from the internet and you can store additional data, such as the location or who you've lent it to.
You may also search and filter your collections by many criteria.
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dasj19 ];
platforms = platforms.all;
};
}