Skip to content

Instantly share code, notes, and snippets.

{
allowUnfree = true;
packageOverrides = pkgs: {
foo = pkgs.foo.override { stdenv = pkgs.clangStdenv; };
};
}
@cleverca22
cleverca22 / shell.nix
Created March 8, 2017 01:24 — forked from spacekitteh/shell.nix
trying to figure out nix shell
{ pkgs ? import <nixpkgs> {}, pkgs_i686 ? pkgs.pkgsi686Linux }:
rec {
myGit = pkgs.git.overrideDerivation (attrs: {
src = ./.;
withManual = false;
guiSupport = false;
tcl=null;
});
env = runCommand "env" { buildInputs = [ myGit ]; } "";
@cleverca22
cleverca22 / 0_reuse_code.js
Created February 20, 2017 21:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cleverca22
cleverca22 / nixpatch.nix
Last active September 17, 2016 14:23 — forked from SuzanneSoy/nixpatch.sh
{ runCommand, fetchurl, makeFontsConf, makeWrapper
, cairo, coreutils, fontconfig, freefont_ttf
, glib, gmp, gtk2, libffi, libjpeg, libpng
, libtool, mpfr, openssl, pango, poppler
, readline, sqlite
}:
let
fontsConf = makeFontsConf {
{ nixpkgs, declInput }:
let
pkgs = import nixpkgs {};
teethBranch = branch: {
enabled = 1;
hidden = false;
description = "teeth ${branch}";
nixexprinput = "src";
@cleverca22
cleverca22 / build.nix
Last active June 11, 2016 13:08 — forked from RonnyPfannschmidt/build.nix
enpass test build setup using nixpkgs from git
with import <nixpkgs> {};
callPackage ./enpass { qt = qt56; }
@cleverca22
cleverca22 / cwrap.nix
Last active October 23, 2015 11:03 — forked from anonymous/default.nix
{ stdenv, lua, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "cwrap-7";
src = fetchFromGitHub {
owner = "torch";
repo = "cwrap";
rev = "6e7d52f0a359dee47127386adb03c0dc4ddd4766";
sha256 = "01yh9z0axz0b4f87mbhkzh64dyv6c4jdkazcpmy1bl1am8apbd8w";