Unverified Commit 6722b4ad authored by quantenzitrone's avatar quantenzitrone
Browse files

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

parent aac3aeaf
Loading
Loading
Loading
Loading
+25 −10
Original line number Diff line number Diff line
{ 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;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -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 { };