feat: valw edit
This commit is contained in:
1 parent
6ffb36d49f
commit
c28330fecb
7 files changed
+2595
-60
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, self', ... }:
|
||||
{ pkgs, lib, self', ... }:
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
inputsFrom = [ self'.packages.default ];
|
||||
@@ -17,6 +17,13 @@
|
||||
wayland-utils
|
||||
];
|
||||
|
||||
# What the package gets through its RUNPATH, for `cargo run`.
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||
pkgs.wayland
|
||||
pkgs.libxkbcommon
|
||||
pkgs.libglvnd
|
||||
];
|
||||
|
||||
# The repo is a path: flake, so Nix copies the whole tree on every
|
||||
# evaluation. Keep the multi-gigabyte target dir out of it.
|
||||
shellHook = ''
|
||||
|
||||
+14
-5
@@ -33,12 +33,21 @@
|
||||
# Tests run through `nix flake check` instead.
|
||||
doCheck = false;
|
||||
|
||||
# Clicking a preview opens Satty. --suffix keeps a user's own Satty first.
|
||||
# Zoom loads libEGL.so.1 (libglvnd); Mesa's drivers come from the system.
|
||||
# Clicking a preview opens Satty if configured. --suffix keeps a user's own Satty first.
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/valw \
|
||||
--suffix PATH : ${lib.makeBinPath [ pkgs.satty ]} \
|
||||
--suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ pkgs.libglvnd ]}
|
||||
wrapProgram $out/bin/valw --suffix PATH : ${lib.makeBinPath [ pkgs.satty ]}
|
||||
'';
|
||||
|
||||
# dlopen()ed at run time: libwayland (winit, valw), libxkbcommon (winit),
|
||||
# libEGL (zoom, editor; Mesa's drivers come from the system).
|
||||
postFixup = ''
|
||||
patchelf --add-rpath ${
|
||||
lib.makeLibraryPath [
|
||||
pkgs.wayland
|
||||
pkgs.libxkbcommon
|
||||
pkgs.libglvnd
|
||||
]
|
||||
} $out/bin/.valw-wrapped
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in new issue
Block a user