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

71 lines
1.2 KiB
Nix

{ stdenv
, lib
, fetchurl
, autoreconfHook
, gnome-common
, pkg-config
, intltool
, gtk-doc
, glib
, avahi
, gnutls
, libuuid
, libsoup
, gtk3
, gnome
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libepc";
version = "0.4.6";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/libepc/${lib.versions.majorMinor finalAttrs.version}/libepc-${finalAttrs.version}.tar.xz";
sha256 = "1s3svb2slqjsrqfv50c2ymnqcijcxb5gnx6bfibwh9l5ga290n91";
};
patches = [
# Remove dependency that is only needed by uninstalled examples.
./no-avahi-ui.patch
];
nativeBuildInputs = [
autoreconfHook
gnome-common
pkg-config
intltool
gtk-doc
];
buildInputs = [
glib
libuuid
gtk3
];
propagatedBuildInputs = [
avahi
gnutls
libsoup
];
enableParallelBuilding = true;
passthru = {
updateScript = gnome.updateScript {
packageName = "libepc";
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Easy Publish and Consume Library";
homepage = "https://gitlab.gnome.org/Archive/libepc";
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
})