diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/xc')
-rw-r--r-- | nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix | 41 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/xc/xclicker/package.nix | 63 |
2 files changed, 104 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix b/nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix new file mode 100644 index 000000000000..5ad33771d358 --- /dev/null +++ b/nixpkgs/pkgs/by-name/xc/xcbeautify/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchurl +, unzip +}: + +stdenv.mkDerivation rec { + pname = "xcbeautify"; + version = "1.4.0"; + + src = fetchurl { + url = "https://github.com/cpisciotta/xcbeautify/releases/download/${version}/xcbeautify-${version}-${stdenv.hostPlatform.darwinArch}-apple-macosx.zip"; + hash = lib.getAttr stdenv.hostPlatform.darwinArch { + arm64 = "sha256-4b4mXT5IfNOS8iOrZASDhTrmOehG4mePcoiKxR+IdZk="; + x86_64 = "sha256-adEfAK7n3Q/Yd1deyJx7htX7hZaGDztEeBv4z2A0wzg="; + }; + }; + + nativeBuildInputs = [ unzip ]; + + unpackPhase = '' + unzip $src + ''; + + installPhase = '' + runHook preInstall + + install -D xcbeautify $out/bin/xcbeautify + + runHook postInstall + ''; + + meta = with lib; { + description = "Little beautifier tool for xcodebuild"; + homepage = "https://github.com/cpisciotta/xcbeautify"; + license = licenses.mit; + platforms = platforms.darwin; + mainProgram = "xcbeautify"; + maintainers = with maintainers; [ siddarthkay ]; + }; +} diff --git a/nixpkgs/pkgs/by-name/xc/xclicker/package.nix b/nixpkgs/pkgs/by-name/xc/xclicker/package.nix new file mode 100644 index 000000000000..3a6597dc4832 --- /dev/null +++ b/nixpkgs/pkgs/by-name/xc/xclicker/package.nix @@ -0,0 +1,63 @@ +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, meson +, ninja +, pkg-config +, wrapGAppsHook +, gtk3 +, libXtst +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "xclicker"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "robiot"; + repo = "xclicker"; + rev = "v${finalAttrs.version}"; + hash = "sha256-3D49iMzCCT9Z2Pf5INHYFZusG0BQI7La7lLaSVM/4mc="; + }; + + patches = [ + (fetchpatch { + name = "fix-malloc-size.patch"; + url = "https://github.com/robiot/xclicker/commit/c99f69a747e9df75fb3676be20a3ec805526d022.patch"; + hash = "sha256-ESbMBusJVNfbGxlEn1Kby00mnXvM5H0r03bX5ofC6Fg="; + }) + ]; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook + ]; + + buildInputs = [ + gtk3 + libXtst + ]; + + mesonBuildType = "release"; + + installPhase = '' + runHook preInstall + install -Dm755 ./src/xclicker $out/bin/xclicker + install -Dm644 $src/assets/xclicker.desktop $out/share/applications/xclicker.desktop + install -Dm644 $src/assets/icon.png $out/share/pixmaps/xclicker.png + runHook postInstall + ''; + + meta = { + changelog = "https://github.com/robiot/xclicker/releases/tag/${finalAttrs.src.rev}"; + description = "Fast gui autoclicker for x11 linux desktops"; + homepage = "https://xclicker.xyz/"; + license = lib.licenses.gpl3Only; + mainProgram = "xclicker"; + maintainers = with lib.maintainers; [ tomasajt ]; + platforms = lib.platforms.linux; + }; +}) |