nixpkgs/pkgs/tools/misc/parcellite/default.nix

32 lines
889 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook
2021-01-17 03:51:22 +00:00
, gtk2, hicolor-icon-theme, intltool, pkg-config
, which, wrapGAppsHook, xdotool }:
2013-05-18 06:22:49 +01:00
stdenv.mkDerivation rec {
pname = "parcellite";
2017-03-30 23:41:55 +01:00
version = "1.2.1";
2013-05-18 06:22:49 +01:00
2017-03-30 23:41:55 +01:00
src = fetchFromGitHub {
owner = "rickyrockrat";
repo = "parcellite";
rev = version;
sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy";
2013-05-18 06:22:49 +01:00
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook intltool pkg-config wrapGAppsHook ];
buildInputs = [ gtk2 hicolor-icon-theme ];
2019-10-30 11:34:47 +00:00
NIX_LDFLAGS = "-lgio-2.0";
2013-05-18 06:22:49 +01:00
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";
2017-03-30 23:41:55 +01:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
2013-05-18 06:22:49 +01:00
};
}