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
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
|
, pkgconfig, dbus, gdk-pixbuf, glib, libX11, gtk2, librsvg
|
|
, dbus-glib, autoreconfHook, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "volnoti-unstable";
|
|
version = "2013-09-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "davidbrazdil";
|
|
repo = "volnoti";
|
|
rev = "4af7c8e54ecc499097121909f02ecb42a8a60d24";
|
|
sha256 = "155lb7w563dkdkdn4752hl0zjhgnq3j4cvs9z98nb25k1xpmpki7";
|
|
};
|
|
|
|
patches = [
|
|
# Fix dbus interface headers. See
|
|
# https://github.com/davidbrazdil/volnoti/pull/10
|
|
(fetchpatch {
|
|
url = "https://github.com/davidbrazdil/volnoti/pull/10.patch";
|
|
sha256 = "046zfdjmvhb7jrsgh04vfgi35sgy1zkrhd3bzdby3nvds1wslfam";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook wrapGAppsHook ];
|
|
|
|
buildInputs = [
|
|
dbus gdk-pixbuf glib libX11 gtk2 dbus-glib librsvg
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight volume notification for Linux";
|
|
homepage = "https://github.com/davidbrazdil/volnoti";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.gilligan ];
|
|
};
|
|
}
|