Skip to content

Instantly share code, notes, and snippets.

@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";
@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; }
{ nixpkgs, declInput }:
let
pkgs = import nixpkgs {};
teethBranch = branch: {
enabled = 1;
hidden = false;
description = "teeth ${branch}";
nixexprinput = "src";
@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 {
@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 / 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 ]; } "";
{
allowUnfree = true;
packageOverrides = pkgs: {
foo = pkgs.foo.override { stdenv = pkgs.clangStdenv; };
};
}
with import <nixpkgs> {};
let vendorgl = (linuxPackages.nvidia_x11.override {
libsOnly = true;
kernel = null;
}).overrideAttrs (oldAttrs: rec {
name = "nvidia-x11-367.27-${pkgs.linuxPackages.kernel.version}";
src = fetchurl {
url = "http://download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.run";
sha256 = "0000000000000000000000000000000000000000000000000000";
{ config, pkgs, ... }:
let
simgrid2 = pkgs.stdenv.mkDerivation {
name = "simgrid2";
buildInputs = with pkgs; [ simgrid ];
};
in {
imports = [
./hardware-configuration.nix
];
@cleverca22
cleverca22 / default.nix
Last active April 21, 2017 17:28 — forked from Hodapp87/shell.nix
darktable shell.nix draft
{ pkgs ? import <nixpkgs> {} }:
# Based on nixpkgs/pkgs/applications/graphics/darktable/default.nix
let stdenv = pkgs.stdenv;
#assert stdenv ? glibc;
in stdenv.mkDerivation rec {
name = "darktable-git";
src = pkgs.lib.cleanSource ./.;