mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 08:07:38 +00:00
Merge pull request #272092 from UARTman/gtkclipblock
gtkclipblock: init at 0.2.2
This commit is contained in:
commit
f7be52b7fc
@ -19120,6 +19120,12 @@
|
||||
github = "uakci";
|
||||
githubId = 6961268;
|
||||
};
|
||||
uartman = {
|
||||
name = "Anton Gusev";
|
||||
email = "uartman@mail.ru";
|
||||
github = "UARTman";
|
||||
githubId = 21099202;
|
||||
};
|
||||
udono = {
|
||||
email = "udono@virtual-things.biz";
|
||||
github = "udono";
|
||||
|
51
pkgs/by-name/gt/gtkclipblock/package.nix
Normal file
51
pkgs/by-name/gt/gtkclipblock/package.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, cmake
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gtk2
|
||||
, gtk3
|
||||
, gtk4
|
||||
}:
|
||||
|
||||
let
|
||||
distorm-src = fetchFromGitHub {
|
||||
owner = "gdabah";
|
||||
repo = "distorm";
|
||||
rev = "3.5.2b";
|
||||
hash = "sha256-2ftEV3TMS3HT7f96k+Pwt3Mm31fVEXcHpcbbz05jycU=";
|
||||
};
|
||||
pname = "gtkclipblock";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "notpeelz";
|
||||
repo = "gtkclipblock";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ok/D7M0KekN8zf8AzhcOLtedbYVRHHv3m9zEHsJfcPM=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = [ meson cmake ninja pkg-config ];
|
||||
|
||||
buildInputs = [ gtk2 gtk3 gtk4 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace subprojects/funchook-helper/subprojects/funchook/CMakeLists.txt \
|
||||
--replace "GIT_REPOSITORY https://github.com/gdabah/distorm.git" "SOURCE_DIR ${distorm-src}"
|
||||
'';
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A LD_PRELOAD hack to prevent GTK programs from interacting with the primary clipboard";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ uartman ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -8988,6 +8988,8 @@ with pkgs;
|
||||
|
||||
gtdialog = callPackage ../development/libraries/gtdialog { };
|
||||
|
||||
gtkclipblock = callPackage ../by-name/gt/gtkclipblock/package.nix { stdenv = gcc13Stdenv; };
|
||||
|
||||
gtkd = callPackage ../development/libraries/gtkd { dcompiler = ldc; };
|
||||
|
||||
gtkgnutella = callPackage ../tools/networking/p2p/gtk-gnutella { };
|
||||
|
Loading…
Reference in New Issue
Block a user