feat: add a lot of stuff
This commit is contained in:
parent
8eb88574fb
commit
6067f0ff0b
47 changed files with 578 additions and 136 deletions
14
users/gandalf/modules/gui/programs/flameshot/build.nix
Normal file
14
users/gandalf/modules/gui/programs/flameshot/build.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs , cmake , qttools , qtsvg , kguiaddons , wrapQtAppsHook }:
|
||||
|
||||
# https://ryantm.github.io/nixpkgs/using/overrides/
|
||||
pkgs.flameshot.overrideAttrs (finalAttrs: previousAttrs: {
|
||||
|
||||
pname = previousAttrs.pname + "-wl";
|
||||
|
||||
nativeBuildInputs = [ cmake qttools qtsvg kguiaddons wrapQtAppsHook ];
|
||||
cmakeFlags = [
|
||||
"-DUSE_WAYLAND_CLIPBOARD=1"
|
||||
"-DUSE_WAYLAND_GRIM=1"
|
||||
];
|
||||
|
||||
})
|
||||
3
users/gandalf/modules/gui/programs/flameshot/default.nix
Normal file
3
users/gandalf/modules/gui/programs/flameshot/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import ./flameshot.nix
|
||||
# include with:
|
||||
# flameshot = pkgs.libsForQt5.callPackage ./flameshot/build.nix { };
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
# https://nixos.wiki/wiki/Qt
|
||||
# https://nixos.org/manual/nixpkgs/stable/#sec-language-qt
|
||||
pkgs.libsForQt5.callPackage ./build.nix { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue