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

View file

@ -3,6 +3,7 @@ rec {
all = [ all = [
scripts scripts
themes themes
(import ../pkgs)
new-packages new-packages
lib_extended lib_extended
disko disko
@ -33,14 +34,12 @@ rec {
} }
); );
new-packages = ( new-packages = final: prev: {
final: prev: { dhist = inputs.dhist.packages.${prev.system}.dhist;
dhist = inputs.dhist.packages.${prev.system}.dhist; demoji = inputs.demoji.packages.${prev.system}.default;
demoji = inputs.demoji.packages.${prev.system}.default; tlauncher = inputs.tlauncher.packages.${prev.system}.tlauncher;
tlauncher = inputs.tlauncher.packages.${prev.system}.tlauncher; wl-crosshair = inputs.wl-crosshair.packages.${prev.system}.default;
wl-crosshair = inputs.wl-crosshair.packages.${prev.system}.default; };
}
);
lib_extended = ( lib_extended = (
final: prev: { final: prev: {

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/
'';
}

View file

@ -40,6 +40,8 @@ lib.mkIf (config.my.desktop == "gnome") {
libsForQt5.qtstyleplugin-kvantum libsForQt5.qtstyleplugin-kvantum
qt6Packages.qt6ct qt6Packages.qt6ct
qt6Packages.qtstyleplugin-kvantum qt6Packages.qtstyleplugin-kvantum
draw-on-your-screen2
]; ];
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3; services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;