nixpkgs/pkgs/by-name/li/libdmapsharing/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

100 lines
1.8 KiB
Nix

{
stdenv,
lib,
fetchFromGitLab,
autoconf,
automake,
libtool,
pkg-config,
vala,
avahi,
gdk-pixbuf,
gst_all_1,
glib,
gtk-doc,
docbook-xsl-nons,
docbook_xml_dtd_43,
gobject-introspection,
libsoup_3,
withGtkDoc ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
}:
stdenv.mkDerivation rec {
pname = "libdmapsharing";
version = "3.9.13";
outputs =
[
"out"
"dev"
]
++ lib.optionals withGtkDoc [
"devdoc"
];
outputBin = "dev";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "${lib.toUpper pname}_${lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "oR9lpOFxgGfrtzncFT6dbmhKQfcuH/NvhOR/USHAHQc=";
};
strictDeps = true;
nativeBuildInputs =
[
autoconf
automake
libtool
gtk-doc # gtkdocize
pkg-config
gobject-introspection
vala
]
++ lib.optionals withGtkDoc [
docbook-xsl-nons
docbook_xml_dtd_43
];
buildInputs =
[
avahi
gdk-pixbuf
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
]
++ lib.optionals withGtkDoc [
gtk-doc
];
propagatedBuildInputs = [
glib
libsoup_3
];
configureFlags = [
(lib.enableFeature false "tests") # Tests require mDNS server
(lib.enableFeature withGtkDoc "gtk-doc")
];
postPatch = ''
substituteInPlace configure.ac \
--replace-fail pkg-config "$PKG_CONFIG"
'';
preConfigure = ''
NOCONFIGURE=1 ./autogen.sh
'';
meta = with lib; {
homepage = "https://www.flyn.org/projects/libdmapsharing/";
description = "Library that implements the DMAP family of protocols";
maintainers = teams.gnome.members;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}