mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ 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 = "LD_PRELOAD hack to prevent GTK programs from interacting with the primary clipboard";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ uartman ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|