home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (933B)


      1 { stdenv, fetchFromGitHub, glib, gettext, bash, nodePackages, gnome3 }:
      2 
      3 stdenv.mkDerivation rec {
      4   pname = "noannoyance";
      5   version = "2020-05-17";
      6 
      7   src = fetchFromGitHub {
      8     owner = "sindex";
      9     repo = "no-annoyance";
     10     rev = "9cc6aaf85cce8e434e58a9caa1b8abb077fdf2e3";
     11     sha256 = "1p0y871616rvd3wfw12nn8ybc8z76fcb7gcd13zf1q53wnwk5ynr";
     12   };
     13 
     14   nativeBuildInputs = [
     15     glib
     16     gettext
     17     nodePackages.typescript
     18   ];
     19 
     20   uuid = "noannoyance@sindex.com";
     21 
     22   installPhase = ''
     23     mkdir -p $out/share/gnome-shell/extensions/${uuid}
     24     cp -r * $out/share/gnome-shell/extensions/${uuid}
     25   '';
     26 
     27   meta = with stdenv.lib; {
     28     description = "Disables the “Window Is Ready” notification and changes the policy of the window manager so that new windows are always focused.";
     29     license = licenses.gpl3;
     30     maintainers = with maintainers; [ vdemeester ];
     31     homepage = "https://github.com/sindex/no-annoyance";
     32   };
     33 }