Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 gtk2, 7 hicolor-icon-theme, 8 intltool, 9 pkg-config, 10 which, 11 wrapGAppsHook3, 12 xdotool, 13 libappindicator-gtk2, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "parcellite"; 18 version = "1.2.1"; 19 20 src = fetchFromGitHub { 21 owner = "rickyrockrat"; 22 repo = "parcellite"; 23 rev = version; 24 sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy"; 25 }; 26 27 nativeBuildInputs = [ 28 autoreconfHook 29 intltool 30 pkg-config 31 wrapGAppsHook3 32 ]; 33 buildInputs = [ 34 gtk2 35 hicolor-icon-theme 36 libappindicator-gtk2 37 ]; 38 NIX_LDFLAGS = "-lgio-2.0"; 39 40 preFixup = '' 41 # Need which and xdotool on path to fix auto-pasting. 42 gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin") 43 ''; 44 45 meta = with lib; { 46 description = "Lightweight GTK clipboard manager"; 47 homepage = "https://github.com/rickyrockrat/parcellite"; 48 license = licenses.gpl3Plus; 49 platforms = platforms.linux; 50 mainProgram = "parcellite"; 51 }; 52}