nixpkgs/pkgs/by-name/gc/gcstar/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08: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}";
hash = "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;
};
}