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
35 lines
969 B
Nix
35 lines
969 B
Nix
{ fetchurl, lib, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "actkbd-0.2.8";
|
|
|
|
src = fetchurl {
|
|
url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${name}.tar.bz2";
|
|
sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace Makefile \
|
|
--replace /usr/local $out \
|
|
--replace /etc $out/etc
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/doc/actkbd
|
|
cp -r README samples $out/share/doc/actkbd
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A keyboard shortcut daemon";
|
|
longDescription = ''
|
|
actkbd is a simple daemon that binds actions to keyboard events
|
|
directly on evdev interface (that is, no X11 required). It
|
|
recognises key combinations and can handle press, repeat and
|
|
release events.
|
|
'';
|
|
license = licenses.gpl2;
|
|
homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|