Skip to content

Instantly share code, notes, and snippets.

# github.com/cockroachdb/cockroach/pkg/build
/home/judson/.nix-profile/bin/ld: cannot find crt1.o: No such file or directory
/home/judson/.nix-profile/bin/ld: cannot find crti.o: No such file or directory
/home/judson/.nix-profile/bin/ld: cannot find -lgcc_s
/home/judson/.nix-profile/bin/ld: cannot find -lpthread
/home/judson/.nix-profile/bin/ld: cannot find -lc
/home/judson/.nix-profile/bin/ld: cannot find -lgcc_s
/home/judson/.nix-profile/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
# github.com/cockroachdb/cockroach/pkg/settings
with (import <nixpkgs> {});
let
nodeApps = import ./default.nix;
in
stdenv.mkDerivation {
name = "sous-spa";
buildInputs = [ nodeApps."create-cycle-app" ];
}
{ pkgs ? import /home/judson/dev/nixpkgs {} }:
let
inherit (pkgs) lib stdenv ruby rake bundler bundlerEnv;
rubyEnv = bundlerEnv {
pname = "shex";
ruby = ruby;
groups = ["default" "test" "development" "debug"];
#!/bin/sh
#set -x
platform_version="x86x64"
device_type="Linux-x86"
device_uniqueid="jlester-nixos"
# delete the csdXXXXXX temp files so they don't start piling up
rm -f $1
exec curl \
--globoff \
--insecure \
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs) lib stdenv ruby bundler bundlerEnv;
rubyEnv = bundlerEnv {
name = "jekyll-blog";
ruby = ruby; #ruby_1_9;
gemfile = ./Gemfile;
{ stdenv, runCommand, writeText, writeScript, writeScriptBin, ruby, lib
, callPackage, defaultGemConfig, fetchurl, fetchgit, buildRubyGem, buildEnv
, git
, makeWrapper
, bundler
, tree
}@defs:
{ name ? null
, pname ? null
function buildStandardMatch(field, hasValue, value, otherField) {
return function(person) {
if (person[field] == value) == hasValue) {
return person[otherField]
} else {
return 0
}
}
}
@nyarly
nyarly / csd-wrapper.sh
Created November 11, 2016 21:58 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi
{ system ? builtins.currentSystem, ... }:
let
nixpkgs = import ./channels/nixpkgs { inherit system; };
nixos_cfg = nixpkgs.callPackage /etc/nixos/configuration.nix {};
nixos_overrides = nixos_cfg.nixpkgs.config.packageOverrides;
kernelConfigs = pkgs: pkgs // nixos_overrides pkgs // rec {
linuxPackages = pkgs.linuxPackages // {
kernel = pkgs.linuxPackages.kernel // nixos_overrides pkgs.linuxPackages.kernel;
};
@nyarly
nyarly / go.vim
Last active July 23, 2016 00:00
Configs for coverage in Go
LegendEnable
exec "au BufEnter,BufWinEnter ". expand('%:p') ." LegendEnable"