Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 44 lines 938 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gtk2, 6 cairo, 7 glib, 8 pkg-config, 9 gnome, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "goocanvas"; 14 version = "1.0.0"; 15 16 src = fetchurl { 17 url = "mirror://gnome/sources/goocanvas/${lib.versions.majorMinor finalAttrs.version}/goocanvas-${finalAttrs.version}.tar.bz2"; 18 hash = "sha256-HAcu+IVnytJB+0rd7ibpvZZ0GxUD/3NtHBUvpthlcR4="; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ 23 gtk2 24 cairo 25 glib 26 ]; 27 28 env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; 29 30 passthru = { 31 updateScript = gnome.updateScript { 32 packageName = "goocanvas"; 33 versionPolicy = "odd-unstable"; 34 freeze = true; 35 }; 36 }; 37 38 meta = with lib; { 39 description = "Canvas widget for GTK based on the the Cairo 2D library"; 40 homepage = "https://gitlab.gnome.org/Archive/goocanvas"; 41 license = licenses.lgpl2; 42 platforms = lib.platforms.unix; 43 }; 44})