I created Init JoyShockMapper at v3.4.0 · Issue #209810 · NixOS/nixpkgs · GitHub when I ran up against a wall packaging JoyShockMapper
for nixos. I don’t have a great understanding cmake or how the project is built, but I think I made some progress. I would love help finishing this!
pkgs.stdenv.mkDerivation rec {
pname = "JoyShockMapper";
version = "3.4.0";
src = pkgs.fetchFromGitHub {
owner = "Electronicks";
repo = "JoyShockMapper";
rev = "v${version}";
sha256 = "sha256-BOXDqLvBIXD2nCoDHJxDdew5ATPlG6ZaMR+I+LQDbTE=";
};
buildInputs = with pkgs; [
gnumake
clang
cmake
gtk3
libappindicator
libevdev
libusb1
SDL2
hidapi
pcre2
glib
pkg-config
];
nativeBuildInputs = with pkgs; [
cmake pkg-config
];
buildPhase = ''
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=clang++
cmake --build .
'';
}
Gives me an error and the warning Package 'mount', required by 'gio-2.0', not found
but adding mount
and gio
to buildInputs did not solve the problem and I feel stuck
Thanks for taking the time to read this!