mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
34 lines
809 B
Nix
34 lines
809 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, boost, libevdevplus, libuinputplus }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ydotool";
|
|
version = "0.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ReimuNotMoe";
|
|
repo = "ydotool";
|
|
rev = "v${version}";
|
|
sha256 = "0mx3636p0f8pznmwm4rlbwq7wrmjb2ygkf8b3a6ps96a7j1fw39l";
|
|
};
|
|
|
|
# disable static linking
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace \
|
|
"-static" \
|
|
""
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [
|
|
boost libevdevplus libuinputplus
|
|
];
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Generic Linux command-line automation tool";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ willibutz ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|