mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
73 lines
1.7 KiB
Nix
73 lines
1.7 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, perlPackages
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gcstar";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "Kerenoc";
|
|
repo = "GCstar";
|
|
rev = "v${version}";
|
|
sha256 = "1vqfff33sssvlvsva1dflggmwl00j5p64sn1669f9wrbvjkxgpv4";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
buildInputs = with perlPackages; [
|
|
perl
|
|
ArchiveZip
|
|
DateCalc
|
|
DateTimeFormatStrptime
|
|
Glib
|
|
Gtk2
|
|
GD
|
|
GDGraph
|
|
GDText
|
|
HTMLParser
|
|
JSON
|
|
ImageExifTool
|
|
librelative
|
|
LWPUserAgent
|
|
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";
|
|
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;
|
|
};
|
|
}
|