4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1,018 B
Nix
35 lines
1,018 B
Nix
{ fetchFromGitHub, fetchpatch, lib, stdenv
|
|
, autoreconfHook, intltool, pkgconfig
|
|
, gtk3, libayatana-appindicator, xdotool, which, wrapGAppsHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clipit";
|
|
version = "1.4.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CristianHenzel";
|
|
repo = "ClipIt";
|
|
rev = "45e2ea386d04dbfc411ea370299502450d589d0c";
|
|
sha256 = "0byqz9hanwmdc7i55xszdby2iqrk93lws7hmjda2kv17g34apwl7";
|
|
};
|
|
|
|
preConfigure = ''
|
|
intltoolize --copy --force --automake
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook autoreconfHook intltool ];
|
|
configureFlags = [ "--with-gtk3" "--enable-appindicator=yes" ];
|
|
buildInputs = [ gtk3 libayatana-appindicator ];
|
|
|
|
gappsWrapperArgs = [
|
|
"--prefix" "PATH" ":" "${stdenv.lib.makeBinPath [ xdotool which ]}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight GTK Clipboard Manager";
|
|
inherit (src.meta) homepage;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ kamilchm ];
|
|
};
|
|
}
|