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
35 lines
989 B
Nix
35 lines
989 B
Nix
{ lib, stdenv, fetchurl, pkgconfig, wrapGAppsHook, intltool, libgpod, curl, flac,
|
|
gnome3, gtk3, gettext, perlPackages, flex, libid3tag, gdl,
|
|
libvorbis, gdk-pixbuf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.1.5";
|
|
pname = "gtkpod";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gtkpod/${pname}-${version}.tar.gz";
|
|
sha256 = "0xisrpx069f7bjkyc8vqxb4k0480jmx1wscqxr6cpq1qj6pchzd5";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook intltool ];
|
|
buildInputs = [
|
|
curl gettext
|
|
flex libgpod libid3tag flac libvorbis gtk3 gdk-pixbuf
|
|
gdl gnome3.adwaita-icon-theme gnome3.anjuta
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
patchPhase = ''
|
|
sed -i 's/which/type -P/' scripts/*.sh
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "GTK Manager for an Apple ipod";
|
|
homepage = "http://gtkpod.sourceforge.net";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.skeidel ];
|
|
};
|
|
}
|