Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add roccat-tools and libgaminggear dependency #47493

Merged
merged 2 commits into from Sep 28, 2018
Merged

Conversation

aszlig
Copy link
Member

@aszlig aszlig commented Sep 28, 2018

I had this package along with libgaminggear laying around since June 2016 and basically just did the setup for the ROCCAT device once and never touched it again since then. However, I got requests from other users who might need this, so I decided to finally upstream it along with using the latest versions.

The change here should be non-controversal and it's mainly here to check with ofborg for possible other platforms that libgaminggear might work on, because I only have access to x86 machines at the moment.

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: libgaminggear

The following builds were skipped because they don't evaluate on x86_64-darwin: roccat-tools

Partial log (click to expand)

ld: framework not found CoreServices
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:1131: libcanberra-pulse.la] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-libcanberra-0.30.drv-0/libcanberra-0.30/src'
make[1]: *** [Makefile:546: all-recursive] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-libcanberra-0.30.drv-0/libcanberra-0.30'
make: *** [Makefile:408: all] Error 2
builder for '/nix/store/j32rjk9x1q5czx26la18b64l17634j21-libcanberra-0.30.drv' failed with exit code 2
cannot build derivation '/nix/store/59wzg69dvrpl23g0wm77a4v1vd5nfxsr-libgaminggear-0.15.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/59wzg69dvrpl23g0wm77a4v1vd5nfxsr-libgaminggear-0.15.1.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: libgaminggear, roccat-tools

Partial log (click to expand)

shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccat.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatnyth.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatiskufx.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatiskuwidget.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatkonepuremilitarywidget.so.5.7.0
gzipping man pages under /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib  /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/bin
patching script interpreter paths in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0
checking for references to /build in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0...

This is a requirement for roccat-tools, which is going to be introduced
soon.

The reason why I'm using propagatedBuildInputs here is because the
pkg-config file lists *all* of the dependencies in Requires and
Requires.private, so those libraries are needed whenever any software
uses that library.

Signed-off-by: aszlig <aszlig@nix.build>
I had this package along with libgaminggear laying around since June
2016[1] and basically just did the setup for the ROCCAT device once and
never touched it again since then. However, I got requests from other
users who might need this, so I decided to finally upstream it along
with using the latest versions.

There were a few hardcoded paths to fix, like eg. /etc/xdg and another
one that used /var/lib/roccat, the latter I moved into $XDG_DATA_HOME
instead.

The reason why I put it in os-specific/linux is that the official site
explicitly states that it's for Linux only and I specified the platforms
attribute accordingly.

[1]: https://gist.github.com/aszlig/3a01c0c23254a68c2be4c6df59e26862

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @devhell
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: libgaminggear, roccat-tools

Partial log (click to expand)

shrinking /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/lib/libroccatarvo.so.5.7.0
shrinking /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/lib/libroccatwidget.so.5.7.0
shrinking /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/lib/libroccat.so.5.7.0
gzipping man pages under /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/lib  /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0/bin
patching script interpreter paths in /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0
checking for references to /build in /nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0...
/nix/store/g2xjhq3knj06swiaihac0qcv1m800652-libgaminggear-0.15.1-dev
/nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: libgaminggear, roccat-tools

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: libgaminggear, roccat-tools

Partial log (click to expand)

shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatsuora.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatwidget.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatryostkl.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatsova.so.5.7.0
shrinking /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib/libroccatkoneplus.so.5.7.0
gzipping man pages under /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/lib  /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0/bin
patching script interpreter paths in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0
checking for references to /build in /nix/store/w27l38n3q5qslspny0wz5il1j07p0pb2-roccat-tools-5.7.0...

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: libgaminggear, roccat-tools

Partial log (click to expand)

/nix/store/g2xjhq3knj06swiaihac0qcv1m800652-libgaminggear-0.15.1-dev
/nix/store/j2qdbql9q3nn9fki1ajgqmkk67ixxg90-roccat-tools-5.7.0

@aszlig aszlig merged commit c502dd8 into NixOS:master Sep 28, 2018
aszlig added a commit that referenced this pull request Sep 28, 2018
This adds roccat-tools and one required dependency (libgaminggear),
which I had laying around since June 2016 but never submitted upstream
until now.

The tools are required if you want to configure one of the hardware
devices from the manufactorer ROCCAT.

Builds for both have been tested against i686-linux, x86_64-linux and
aarch64-linux.
@aszlig aszlig deleted the roccat branch September 28, 2018 20:47
@woozalia woozalia mentioned this pull request Oct 4, 2018
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants