mirror of
https://github.com/Noratrieb/clippyboard.git
synced 2026-01-14 09:55:04 +01:00
stuff
This commit is contained in:
parent
fbce93b927
commit
09f26d6d40
3 changed files with 20 additions and 5 deletions
17
default.nix
Normal file
17
default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }: pkgs.rustPlatform.buildRustPackage {
|
||||||
|
name = "clippyboard";
|
||||||
|
|
||||||
|
src = pkgs.lib.cleanSource ./.;
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
libGL
|
||||||
|
libxkbcommon
|
||||||
|
wayland
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXrandr
|
||||||
|
];
|
||||||
|
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
}
|
||||||
|
|
@ -8,10 +8,6 @@ pkgs.mkShell rec {
|
||||||
freetype.dev
|
freetype.dev
|
||||||
libGL
|
libGL
|
||||||
pkg-config
|
pkg-config
|
||||||
xorg.libX11
|
|
||||||
xorg.libXcursor
|
|
||||||
xorg.libXi
|
|
||||||
xorg.libXrandr
|
|
||||||
wayland
|
wayland
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,9 @@ pub fn main(socket_path: &Path) -> eyre::Result<()> {
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let options = eframe::NativeOptions {
|
let options = eframe::NativeOptions {
|
||||||
viewport: egui::ViewportBuilder::default().with_inner_size([500.0, 500.0]),
|
viewport: egui::ViewportBuilder::default()
|
||||||
|
.with_inner_size([500.0, 500.0])
|
||||||
|
.with_app_id("clippyboard"),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
eframe::run_native(
|
eframe::run_native(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue