Skip to content

Instantly share code, notes, and snippets.

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 5.3.0 Kernel Configuration
#
#
# Compiler: gcc (GCC) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
{ config, lib, pkgs, ... }:
let
rootfs = "/dev/disk/by-uuid/7165e542-0995-474c-a228-9592339e0604";
swapfs = "/dev/disk/by-uuid/baaf824a-bee0-4037-a237-3a69f1db7985";
in
{
# fs layout:
# before: /nixos/nix/* /boot/grub/menu.lst
# after: /nix/* /old-root/boot/grub/menu.lst
{ stdenv, musl, netbsd }:
let
getconf = builtins.fetchurl https://raw.githubusercontent.com/alpinelinux/aports/master/main/musl/getconf.c;
getent = builtins.fetchurl https://raw.githubusercontent.com/alpinelinux/aports/master/main/musl/getent.c;
isMusl = stdenv.hostPlatform.isMusl;
in
stdenv.mkDerivation {
pname = "musl-bin";
version = musl.version;
srcs = [
@yorickvP
yorickvP / fix.patch
Last active September 10, 2019 18:49
diff --git a/src/lib_base/p2p_addr.ml b/src/lib_base/p2p_addr.ml
index b2c78e40..cecc8efc 100644
--- a/src/lib_base/p2p_addr.ml
+++ b/src/lib_base/p2p_addr.ml
@@ -30,7 +30,7 @@ let encoding =
def "p2p_address" ~description:"An address for locating peers."
@@ splitted
~json:(conv Ipaddr.V6.to_string Ipaddr.V6.of_string_exn string)
- ~binary:(conv Ipaddr.V6.to_bytes Ipaddr.V6.of_bytes_exn string)
+ ~binary:(conv Ipaddr.V6.to_octets Ipaddr.V6.of_octets_exn string)
@yorickvP
yorickvP / README.md
Last active August 24, 2019 13:56
glitchlock

I saw the awesome thing at r/unixporn and wanted to make it lock faster and run it with sway, so here it is.

nix run https://gist.github.com/yorickvP/70cecb02096379b2f7a3510fb726f2ff/archive/master.tar.gz -c glitchlock

let
# point to recent (08/23) nixpkgs
native = import (<nixpkgs>) {};
pkgs = import (<nixpkgs>) {
crossSystem = {
config = "riscv32-none-elf";
libc = "newlib";
platform = (native.platforms.riscv-multiplatform "32") // { gcc.arch = "rv32i"; };
};
};
Wiphy phy0
max # scan SSIDs: 20
max scan IEs length: 422 bytes
max # sched scan SSIDs: 20
max # match sets: 11
max # scan plans: 2
max scan plan interval: 65535
max scan plan iterations: 254
Retry short limit: 7
Retry long limit: 4
import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/b5f5c97f7d67a99b67731a8cfd3926f163c11857.tar.gz";
sha256 = "1m9xb3z3jxh0xirdnik11z4hw95bzdz7a4p3ab7y392345jk1wgm";
}) { config = {}; overlays = [
(self: super: {
haskell = super.haskell // {
packages = super.haskell.packages // {
ghc864 = super.haskell.packages.ghc864.extend (hself: hsuper: {
happy = super.haskell.lib.dontCheck (hsuper.callHackage "happy" "1.19.9" {});
});
(function() {
'use strict';
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = {
checkDCE: function() {},
supportsFiber: true,
roots: new Set(),
inject() {},
onCommitFiberRoot(rendererID, root) {
const current = root.current;
if (current.memoizedState != null && current.memoizedState.element != null) {
let
all-cabal-hashes-component = name: version: type:
builtins.fetchurl
"https://raw.githubusercontent.com/commercialhaskell/all-cabal-hashes/hackage/${name}/${version}/${name}.${type}";
in self: super: {
haskellPackages = super.haskellPackages.override {
overrides = self: super: {
hackage2nix = name: version:
self.haskellSrc2nix {
name = "${name}-${version}";