Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchgit 4, pkg-config 5, glib 6, vala 7, dee 8, gobject-introspection 9, libdbusmenu 10, gtk3 11, intltool 12, python3 13, autoreconfHook 14}: 15 16stdenv.mkDerivation { 17 pname = "libunity"; 18 version = "unstable-2021-02-01"; 19 20 outputs = [ "out" "dev" "py" ]; 21 22 # Obtained from https://git.launchpad.net/ubuntu/+source/libunity/log/ 23 src = fetchgit { 24 url = "https://git.launchpad.net/ubuntu/+source/libunity"; 25 rev = "import/7.1.4+19.04.20190319-5"; 26 sha256 = "LHUs6kl1srS6Xektx+jmm4SXLR47VuQ9IhYbBxf2Wc8="; 27 }; 28 29 patches = [ 30 # Fix builf with latest Vala 31 # https://code.launchpad.net/~jtojnar/libunity/libunity 32 # Did not send upstream because Ubuntu is stuck on Vala 0.48. 33 ./fix-vala.patch 34 ]; 35 36 nativeBuildInputs = [ 37 autoreconfHook 38 gobject-introspection 39 intltool 40 pkg-config 41 python3 42 vala 43 ]; 44 45 buildInputs = [ 46 glib 47 gtk3 48 ]; 49 50 propagatedBuildInputs = [ 51 dee 52 libdbusmenu 53 ]; 54 55 preConfigure = '' 56 intltoolize 57 ''; 58 59 configureFlags = [ 60 "--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides" 61 ]; 62 63 meta = with lib; { 64 description = "A library for instrumenting and integrating with all aspects of the Unity shell"; 65 homepage = "https://launchpad.net/libunity"; 66 license = licenses.lgpl3; 67 platforms = platforms.linux; 68 maintainers = with maintainers; [ ]; 69 }; 70}