Skip to content

Instantly share code, notes, and snippets.

these derivations will be built:
/nix/store/7dbx2dakqj40d4ggr0wyk6ksnkh308m8-git-cola-2.1.0.drv
building path(s) ‘/nix/store/zirh5w5qhwbp1anpm9mjf26v6wkwrcp0-git-cola-2.1.0’
building /nix/store/zirh5w5qhwbp1anpm9mjf26v6wkwrcp0-git-cola-2.1.0
unpacking sources
unpacking source archive /nix/store/a7jka15ygg6yg2jq6vl18qmiidkcfxia-v2.1.0.tar.gz
source root is git-cola-2.1.0
patching sources
configuring
no configure script, doing nothing
@thorhop
thorhop / vivaldi.nix
Created February 4, 2015 00:38
A browser for your friends...
{ stdenv, fetchurl, dpkg, patchelf, cpio, mesa, xorg, cairo
, libpng, gtk, glib, gdk_pixbuf, fontconfig, freetype, curl
, dbus_glib, alsaLib, pulseaudio, udev, pango
}:
with stdenv.lib;
let
rpathPlugin = makeLibraryPath
@thorhop
thorhop / configuration.nix
Created February 4, 2015 19:04
My config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
Bus 003 Device 008: ID 0499:150e Yamaha Corp.
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 255
@thorhop
thorhop / default.nix
Last active August 29, 2015 14:15
Will this work?
{
kernelModules =
if cfg.alsaSeq.enable then
[ "snd-seq"
"snd-rawmidi"
]
or (cfg.soundcardUsbId != "")
[ "snd-usb-audio" ]
else [ ];
}
{
Tk = buildPerlPackage rec {
name = "Tk-804.027";
src = fetchurl {
url = "mirror://cpan/authors/id/N/NI/NI-S/${name}.tar.gz";
sha256 = "18nq38df1zxz35d3a6ajj8lw68c1rp80fhdgfzdqq5l5i1ni64pw";
};
buildInputs = [ pkgs.xlibs.libXext pkgs.xlibs.libX11 ];
NIX_CFLAGS_LINK = "-lX11";
@thorhop
thorhop / default.nix
Created February 8, 2015 15:07
npm2nix slap
{ self, fetchurl, fetchgit ? null, lib }:
{
by-spec."CSSselect"."~0.4.0" =
self.by-version."CSSselect"."0.4.1";
by-version."CSSselect"."0.4.1" = lib.makeOverridable self.buildNodePackage {
name = "CSSselect-0.4.1";
bin = false;
src = [
(fetchurl {
building config
GOT: make: Leaving directory `/tmp/nix-build-linux-config-3.14.31.drv-1/linux-3.14.31'
unused option: RT_GROUP_SCHED
unused option: TRANSPARENT_HUGEPAGE
unused option: TRANSPARENT_HUGEPAGE_ALWAYS
unused option: TRANSPARENT_HUGEPAGE_MADVISE
unused option: UBIFS_FS_XATTR
unused option: X86_INTEL_PSTATE
builder for ‘/nix/store/yjiklawwdvs30qb28jymv13wngp09lzk-linux-config-3.14.31.drv’ failed with exit code 255
cannot build derivation ‘/nix/store/r5j5sy3fqxp0da552pwnismy777pfiij-linux-3.14.31.drv’: 1 dependencies couldn't be built
@thorhop
thorhop / default.nix
Last active August 29, 2015 14:15
perl/Tk expression
{
Tk = buildPerlPackage rec {
name = "Tk-804.032";
src = fetchurl {
url = "http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/${name}.tar.gz";
sha256 = "0jarvplhfvnm0shhdm2a5zczlnk9mkf8jvfjiwyhjrr3cy1gl0w0";
};
makeMakerFlags = "X11LIB=${pkgs.xlibs.libX11}/lib";
buildInputs = with pkgs; [ xlibs.libX11 libpng ];
configurePhase = ''
@thorhop
thorhop / default.nix
Last active August 29, 2015 14:15
Expression for realTimeConfigQuickScan (or "rtconfigscan" for short)
{ stdenv, fetchFromGithub, perl, enableX11 ? true }:
stdenv.mkDerivation {
name = "rtsyscheck";
src = fetchFromGitHub {
owner = "raboof";
repo = "realtimeconfigquickscan";
sha256 = "ece51e802afa1ddb1a6164407fa11b62f3a90d408ac17637bea4dc50d71595a4";
};