mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
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
40 lines
957 B
Nix
40 lines
957 B
Nix
{ lib, stdenv, fetchFromGitHub, glib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-impatience";
|
|
version = "unstable-2019-09-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timbertson";
|
|
repo = "gnome-shell-impatience";
|
|
rev = "43e4e0a1e0eeb334a2da5224ce3ab4fdddf4f1b2";
|
|
sha256 = "0kvdhlz41fjyqdgcfw6mrr9nali6wg2qwji3dvykzfi0aypljzpx";
|
|
};
|
|
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
make schemas
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
cp -r impatience $out/share/gnome-shell/extensions/${uuid}
|
|
runHook postInstall
|
|
'';
|
|
|
|
uuid = "impatience@gfxmonk.net";
|
|
|
|
meta = with lib; {
|
|
description = "Speed up builtin gnome-shell animations";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ timbertson tiramiseb ];
|
|
homepage = "http://gfxmonk.net/dist/0install/gnome-shell-impatience.xml";
|
|
};
|
|
}
|