mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
32 lines
889 B
Nix
32 lines
889 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
|
, gtk2, hicolor-icon-theme, intltool, pkg-config
|
|
, which, wrapGAppsHook, xdotool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "parcellite";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rickyrockrat";
|
|
repo = "parcellite";
|
|
rev = version;
|
|
sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config wrapGAppsHook ];
|
|
buildInputs = [ gtk2 hicolor-icon-theme ];
|
|
NIX_LDFLAGS = "-lgio-2.0";
|
|
|
|
preFixup = ''
|
|
# Need which and xdotool on path to fix auto-pasting.
|
|
gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight GTK clipboard manager";
|
|
homepage = "https://github.com/rickyrockrat/parcellite";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|