Skip to content

Instantly share code, notes, and snippets.

@AcouBass
AcouBass / build.sh
Last active August 20, 2016 18:02
files for packaging crane gps watch in NixOS
source $stdenv/setup
PATH=$PATH
unpackFile $src
cd crane_gps_watch
./configure --prefix=$out
make
make install
@AcouBass
AcouBass / compat.nix
Last active September 10, 2016 00:54
curl compat - no versioned symbols, for runescape nix
{ stdenv, fetchurl, gnutls, pkgconfig, perl
, http2Support ? false, nghttp2
, idnSupport ? false, libidn ? null
, ldapSupport ? false, openldap ? null
, zlibSupport ? false, zlib ? null
, sslSupport ? false, openssl ? null
, scpSupport ? false, libssh2 ? null
, gssSupport ? false, gss ? null
, c-aresSupport ? false, c-ares ? null
}:
[eddie@nixos:~/nixpkgs]$ ./result/bin/runescape-launcher
/nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/bin/.runescape-launcher-wrapped: line 13: /nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape: No such file or directory
[nix-shell:~]$ file /nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape
/nix/store/rwzbifh7lm2723rlab2nzdw6xscxqzra-runescape-2.2.2/share/games/runescape-launcher/runescape: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/zc3azgj5rlbjff8vyrl2jx1r5r0nlsv5-glibc-2.23-dev/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=1d0bb03ac9ba2a3402a9fd3ee6f5971e298f4966, stripped
@AcouBass
AcouBass / default.nix
Last active January 17, 2018 13:33
runescape .nix - no longer needs curl-compat!
{ pkgs ? import <nixpkgs> {} }:
let
env = pkgs.buildEnv {
name = "runscape-env";
paths = with pkgs; [
/* required by launcher executable */
xorg.libSM xorg.libXxf86vm libpng12 xorg.libX11 expat.out
webkitgtk glib.out pango.out cairo.out gdk_pixbuf gtk2.out
stdenv.cc.cc.lib glib_networking.out curl.out
➜ ~ deluged -d -P /home/eddie/.config/deluge/deluge.pid
/usr/lib/python2.7/site-packages/twisted/internet/_sslverify.py:184: UserWarning: You do not have the service_identity module installed. Please install it from <https://pypi.python.org/pypi/service_identity>. Without the service_identity module and a recent enough pyOpenSSL tosupport it, Twisted can perform only rudimentary TLS client hostnameverification. Many valid certificate/hostname mappings may be rejected.
verifyHostname, VerificationError = _selectVerifyImplementation()
[ERROR ] 02:01:00 component:118 [Failure instance: Traceback: <type 'exceptions.KeyError'>: -1
/usr/lib/python2.7/site-packages/deluge/main.py:230:start_daemon
/usr/lib/python2.7/site-packages/deluge/core/daemon.py:161:__init__
/usr/lib/python2.7/site-packages/deluge/component.py:296:start
/usr/lib/python2.7/site-packages/deluge/component.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/site-packages/twisted/internet/defer.py:139:maybeDeferred