mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ fetchurl, lib, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "actkbd";
|
|
version = "0.2.8";
|
|
|
|
src = fetchurl {
|
|
url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/actkbd-${version}.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 = "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.gpl2Only;
|
|
homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/";
|
|
platforms = platforms.linux;
|
|
mainProgram = "actkbd";
|
|
};
|
|
}
|