Skip to content

Instantly share code, notes, and snippets.

View aaronjanse's full-sized avatar

Aaron Janse aaronjanse

View GitHub Profile
@aaronjanse
aaronjanse / default.nix
Created July 20, 2020 23:21
Broken `relibc`, compiled using Nix
{ stdenv, buildPackages, fetchurl, lib , makeRustPlatform }:
let
rpath = lib.makeLibraryPath [
buildPackages.stdenv.cc.libc
"$out"
];
bootstrapCrossRust = stdenv.mkDerivation {
name = "binary-redox-rust";
@aaronjanse
aaronjanse / energia.nix
Created November 4, 2020 01:52
Works with nixos-unstable as of October 2020
{ stdenv, autoPatchelfHook, ffmpeg_3, fetchurl, bash, jdk, kmod, pkgs }:
stdenv.mkDerivation {
name = "energia";
version = "1.8.10E23";
src = fetchurl {
url = "http://energia.nu/downloads/downloadv4.php?file=energia-1.8.10E23-linux64.tar.xz";
sha256 = "065vii9x9b7x4bj1b97grz2vwd4xam1lprsbgsfagry3adf3bshv";
};
{ stdenv, pkgconfig, fetchurl, xwiimote, udev, xorg }:
stdenv.mkDerivation rec {
name = "xf86-input-xwiimote";
src = fetchurl {
url = "https://github.com/dvdhrm/xf86-input-xwiimote/releases/download/${name}-0.5/${name}-0.5.tar.xz";
sha256 = "1gwnbnhybrmhmrp4i2b5yr624mvrr9bpk0r2592y8rm7c5lzqfba";
};
nativeBuildInputs = [ pkgconfig ];
@aaronjanse
aaronjanse / cargo.patch
Created September 20, 2021 16:28
rnix-lsp with rnix-parser patched for memory leak bug
diff --git a/Cargo.lock b/Cargo.lock
index 05ad0a9..1b77af8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
{
"key": "]",
"command": "cursorMove",
"args": {
"to": "nextBlankLine"
},
"when": "editorTextFocus && dance.mode == 'normal'",
},
{
"key": "shift+]",