Open Yappaholic opened 3 days ago
wideriver uses pkg-config to install dependencies, just wayland-client
which it looks like you have, along with the other dependencies.
I'm not familiar with nix, however I suggest you take a look at the nixos builds from a similar utility with similar requirements: way-displays . nixpkgs unstable and 24.05 are at latest version and seem to be working.
So I tried to make a default.nix
file for wideriver and managed to resolve problem with fetching(I'm fairly new to nix too).
Now I can open shell environment with the default package, but can't launch, as it is not installed. Maybe any tips?
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, wayland
}:
stdenv.mkDerivation rec {
pname = "wideriver";
version = "1.2.0";
src = fetchFromGitHub {
owner = "alex-courtis";
repo = "wideriver";
rev = version;
sha256 = "16i0mzgxn32nrh5ajn0kb4xdwmsjg03amhasxhwyvspar5y4flhg";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
wayland
];
buildInputs = [
wayland
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"PREFIX_ETC=${placeholder "out"}"
"CC:=$(CC)"
"CXX:=$(CXX)"
];
meta = with lib; {
homepage = "https://github.com/alex-courtis/wideriver";
description = "Tiling window manager for the river wayland compositor";
license = licenses.mit;
platforms = platforms.linux;
mainProgram = "wideriver";
};
}
Expected behavior
Running
make
compiles app packageActual behavior
Make returns a lot of
undefined reference
errors and exits withmake: *** [GNUmakefile:35: wideriver] Error 1
Steps to reproduce
Launch nix-shell with
gnumake libgcc wayland wayland-protocols wlroots
and runmake
inside the wideriver directoryriver version
0.3.3
wideriver version
1.2.0
Startup logs