tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
easytag: add updateScript
Jan Tojnar
8 years ago
a081e8ef
125593ff
+17
-15
1 changed file
expand all
collapse all
unified
split
pkgs
applications
audio
easytag
default.nix
+17
-15
pkgs/applications/audio/easytag/default.nix
···
1
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, glib, libid3tag, id3lib, taglib
2
, libvorbis, libogg, flac, itstool, libxml2, gsettings-desktop-schemas
3
-
, makeWrapper, gnome3
4
}:
5
6
-
stdenv.mkDerivation rec {
7
-
name = "easytag-${version}";
8
-
majorVersion = "2.4";
9
-
version = "${majorVersion}.3";
0
10
11
src = fetchurl {
12
-
url = "mirror://gnome/sources/easytag/${majorVersion}/${name}.tar.xz";
13
sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw";
14
};
15
16
-
preFixup = ''
17
-
wrapProgram $out/bin/easytag \
18
-
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:$out/share" \
19
-
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules"
20
-
'';
21
-
22
NIX_LDFLAGS = "-lid3tag -lz";
23
24
-
nativeBuildInputs = [ makeWrapper pkgconfig intltool ];
25
buildInputs = [
26
gtk3 glib libid3tag id3lib taglib libvorbis libogg flac
27
-
itstool libxml2 gsettings-desktop-schemas gnome3.defaultIconTheme (stdenv.lib.getLib gnome3.dconf)
28
];
29
0
0
0
0
0
0
0
30
meta = with stdenv.lib; {
31
description = "View and edit tags for various audio files";
32
-
homepage = http://projects.gnome.org/easytag/;
33
license = licenses.gpl2Plus;
34
maintainers = with maintainers; [ fuuzetsu ];
35
platforms = platforms.linux;
···
1
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, glib, libid3tag, id3lib, taglib
2
, libvorbis, libogg, flac, itstool, libxml2, gsettings-desktop-schemas
3
+
, gnome3, wrapGAppsHook
4
}:
5
6
+
let
7
+
pname = "easytag";
8
+
version = "2.4.3";
9
+
in stdenv.mkDerivation rec {
10
+
name = "${pname}-${version}";
11
12
src = fetchurl {
13
+
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
14
sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw";
15
};
16
0
0
0
0
0
0
17
NIX_LDFLAGS = "-lid3tag -lz";
18
19
+
nativeBuildInputs = [ pkgconfig intltool itstool libxml2 wrapGAppsHook ];
20
buildInputs = [
21
gtk3 glib libid3tag id3lib taglib libvorbis libogg flac
22
+
gsettings-desktop-schemas gnome3.defaultIconTheme
23
];
24
25
+
passthru = {
26
+
updateScript = gnome3.updateScript {
27
+
packageName = pname;
28
+
versionPolicy = "none";
29
+
};
30
+
};
31
+
32
meta = with stdenv.lib; {
33
description = "View and edit tags for various audio files";
34
+
homepage = https://wiki.gnome.org/Apps/EasyTAG;
35
license = licenses.gpl2Plus;
36
maintainers = with maintainers; [ fuuzetsu ];
37
platforms = platforms.linux;