nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchFromGitLab
3, perlPackages
4, wrapGAppsHook
5}:
6
7stdenv.mkDerivation rec {
8 pname = "gcstar";
9 version = "1.7.3";
10
11 src = fetchFromGitLab {
12 owner = "Kerenoc";
13 repo = "GCstar";
14 rev = "v${version}";
15 sha256 = "1hah8ijh9mvcgbh36y3d3s6y79mzz27w24f2i29qllv7cayf6129";
16 };
17
18 nativeBuildInputs = [ wrapGAppsHook ];
19
20 buildInputs = with perlPackages; [
21 perl
22 ArchiveZip
23 DateCalc
24 DateTimeFormatStrptime
25 Glib
26 Gtk3
27 Gtk3SimpleList
28 GD
29 GDGraph
30 GDText
31 HTMLParser
32 JSON
33 ImageExifTool
34 librelative
35 LWP
36 LWPProtocolHttps
37 MP3Info
38 MP3Tag
39 NetFreeDB
40 OggVorbisHeaderPurePerl
41 Pango
42 XMLSimple
43 XMLParser
44 ];
45
46 installPhase = ''
47 runHook preInstall
48
49 cd gcstar
50 perl install --text --prefix=$out
51
52 runHook postInstall
53 '';
54
55 postFixup = ''
56 wrapProgram $out/bin/gcstar --prefix PERL5LIB : $PERL5LIB
57 '';
58
59 meta = with lib; {
60 homepage = "https://gitlab.com/Kerenoc/GCstar";
61 description = "Manage your collections of movies, games, books, music and more";
62 longDescription = ''
63 GCstar is an application for managing your collections.
64 It supports many types of collections, including movies, books, games, comics, stamps, coins, and many more.
65 You can even create your own collection type for whatever unique thing it is that you collect!
66 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.
67 You may also search and filter your collections by many criteria.
68 '';
69 license = licenses.gpl2Plus;
70 maintainers = with maintainers; [ dasj19 ];
71 platforms = platforms.all;
72 };
73}