4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ lib, stdenv, fetchgit, wrapGAppsHook, which, gnome3, glib, intltool, pkgconfig, libtool, cairo, gtk3, gst_all_1, xorg }:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "0.2.3.alpha";
|
|
pname = "byzanz";
|
|
|
|
src = fetchgit {
|
|
url = "git://github.com/GNOME/byzanz";
|
|
rev = "1875a7f6a3903b83f6b1d666965800f47db9286a";
|
|
sha256 = "0a72fw2mxl8vdcdnzy0bwis4jk28pd7nc8qgr4vhyw5pd48dynvh";
|
|
};
|
|
|
|
patches = [ ./add-amflags.patch ];
|
|
|
|
preBuild = ''
|
|
./autogen.sh --prefix=$out
|
|
'';
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ which gnome3.gnome-common glib intltool libtool cairo gtk3 xorg.xwininfo ]
|
|
++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-libav wrapGAppsHook ]);
|
|
|
|
meta = with lib; {
|
|
description = "Tool to record a running X desktop to an animation suitable for presentation in a web browser";
|
|
homepage = "https://github.com/GNOME/byzanz";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
}
|