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
32 lines
986 B
Nix
32 lines
986 B
Nix
{ lib, stdenv, fetchFromGitHub, gnome3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-window-corner-preview";
|
|
version = "unstable-2019-04-03";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "medenagan";
|
|
repo = "window-corner-preview";
|
|
rev = "a95bb1389d94474efab7509aac592fb58fff6006";
|
|
sha256 = "03v18j9l0fb64xrg3swf1vcgl0kpgwjlp8ddn068bpvghrsvgfah";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
uuid = "window-corner-preview@fabiomereu.it";
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GNOME Shell extension showing a video preview on the corner of the screen";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
homepage = "https://github.com/medenagan/window-corner-preview";
|
|
broken = stdenv.lib.versionAtLeast gnome3.gnome-shell.version "3.32"; # Doesn't support 3.34
|
|
};
|
|
}
|