nixpkgs/pkgs/by-name/li/libunity/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.3 KiB
Nix

{ lib
, stdenv
, fetchgit
, pkg-config
, glib
, vala
, dee
, gobject-introspection
, libdbusmenu
, gtk3
, intltool
, python3
, autoreconfHook
}:
stdenv.mkDerivation {
pname = "libunity";
version = "unstable-2021-02-01";
outputs = [ "out" "dev" "py" ];
# Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/
src = fetchgit {
url = "https://git.launchpad.net/ubuntu/+source/libunity";
rev = "import/7.1.4+19.04.20190319-5";
sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8=";
};
patches = [
# Fix builf with latest Vala
# https://code.launchpad.net/~jtojnar/libunity/libunity
# Did not send upstream because Ubuntu is stuck on Vala 0.48.
./fix-vala.patch
];
nativeBuildInputs = [
autoreconfHook
gobject-introspection
intltool
pkg-config
python3
vala
];
buildInputs = [
glib
gtk3
];
propagatedBuildInputs = [
dee
libdbusmenu
];
preConfigure = ''
intltoolize
'';
configureFlags = [
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
];
meta = with lib; {
description = "Library for instrumenting and integrating with all aspects of the Unity shell";
homepage = "https://launchpad.net/libunity";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = [ ];
};
}