gnome: install draw-on-your-screen2

This commit is contained in:
Leonardo Eugênio 2024-08-23 23:34:10 -03:00
parent a28e50f48a
commit 65edfe5a9a
4 changed files with 37 additions and 8 deletions

7
pkgs/default.nix Normal file
View file

@ -0,0 +1,7 @@
final: prev:
let
inherit (final) callPackage;
in
{
draw-on-your-screen2 = callPackage ./draw-on-your-screen2 { };
}

View file

@ -0,0 +1,21 @@
{ fetchFromGitHub, stdenv }:
stdenv.mkDerivation {
pname = "draw-on-your-screen";
version = "unstable-2024-06-18";
src = fetchFromGitHub {
owner = "zhrexl";
repo = "DrawOnYourScreen2";
rev = "9b5c6633a1c2b8c5b35bac45276ad1302542ab9b";
hash = "sha256-J4ljx3HBe+86PGOIIgabtj8AuUAf88/bpTfRXowUng4=";
};
installPhase = ''
mkdir -p $out/share/gnome-shell/extensions/draw-on-your-screen2@zhrexl.github.com
cp -r ./* $out/share/gnome-shell/extensions/draw-on-your-screen2@zhrexl.github.com
mkdir -p $out/share/glib-2.0/
cp -r ./schemas/ $out/share/glib-2.0/
'';
}