ydotool: move to pkgs/by-name, add meta.mainProgram, refactor

This commit is contained in:
Quantenzitrone 2024-05-08 20:22:34 +02:00
parent aac3aeaf2f
commit 6722b4ade9
No known key found for this signature in database
GPG Key ID: 54767E8E66ABED22
2 changed files with 25 additions and 12 deletions

View File

@ -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";
version = "1.0.4";
src = fetchFromGitHub {
owner = "ReimuNotMoe";
repo = "ydotool";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-MtanR+cxz6FsbNBngqLE+ITKPZFHmWGsD1mBDk0OVng=";
};
@ -19,13 +27,20 @@ stdenv.mkDerivation rec {
'';
strictDeps = true;
nativeBuildInputs = [ cmake scdoc ];
nativeBuildInputs = [
cmake
scdoc
];
meta = with lib; {
homepage = "https://github.com/ReimuNotMoe/ydotool";
meta = {
description = "Generic Linux command-line automation tool";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ willibutz kraem ];
platforms = with platforms; linux;
homepage = "https://github.com/ReimuNotMoe/ydotool";
license = lib.licenses.agpl3Plus;
mainProgram = "ydotool";
maintainers = with lib.maintainers; [
willibutz
kraem
];
platforms = lib.platforms.linux;
};
}
})

View File

@ -4766,8 +4766,6 @@ with pkgs;
wtype = callPackage ../tools/wayland/wtype { };
ydotool = callPackage ../tools/wayland/ydotool { };
cambalache = callPackage ../development/tools/cambalache { };
cambrinary = python3Packages.callPackage ../applications/misc/cambrinary { };