ydotool: move to pkgs/by-name, add meta.mainProgram, refactor
This commit is contained in:
@@ -1,13 +1,21 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, scdoc, util-linux, xorg }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
cmake,
|
||||||
|
scdoc,
|
||||||
|
util-linux,
|
||||||
|
xorg,
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ydotool";
|
pname = "ydotool";
|
||||||
version = "1.0.4";
|
version = "1.0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ReimuNotMoe";
|
owner = "ReimuNotMoe";
|
||||||
repo = "ydotool";
|
repo = "ydotool";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
|
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -19,13 +27,20 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
nativeBuildInputs = [ cmake scdoc ];
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
scdoc
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
|
||||||
description = "Generic Linux command-line automation tool";
|
description = "Generic Linux command-line automation tool";
|
||||||
license = licenses.agpl3Plus;
|
homepage = "https://github.com/ReimuNotMoe/ydotool";
|
||||||
maintainers = with maintainers; [ willibutz kraem ];
|
license = lib.licenses.agpl3Plus;
|
||||||
platforms = with platforms; linux;
|
mainProgram = "ydotool";
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
willibutz
|
||||||
|
kraem
|
||||||
|
];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
@@ -4766,8 +4766,6 @@ with pkgs;
|
|||||||
|
|
||||||
wtype = callPackage ../tools/wayland/wtype { };
|
wtype = callPackage ../tools/wayland/wtype { };
|
||||||
|
|
||||||
ydotool = callPackage ../tools/wayland/ydotool { };
|
|
||||||
|
|
||||||
cambalache = callPackage ../development/tools/cambalache { };
|
cambalache = callPackage ../development/tools/cambalache { };
|
||||||
|
|
||||||
cambrinary = python3Packages.callPackage ../applications/misc/cambrinary { };
|
cambrinary = python3Packages.callPackage ../applications/misc/cambrinary { };
|
||||||
|
|||||||
Reference in New Issue
Block a user