Skip to content

Instantly share code, notes, and snippets.

@thorhop
Created February 1, 2015 22:27
Show Gist options
  • Save thorhop/233189facc280a1c6450 to your computer and use it in GitHub Desktop.
Save thorhop/233189facc280a1c6450 to your computer and use it in GitHub Desktop.
What am I doing wrong...
$ nix-build pkgs/tools/X11/touchegg/default.nix --dry-run
error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
{ stdenv, fetchurl, libX11, Qt4, libXtst, libXext }:
stdenv.mkDerivation rec {
name = "touchegg-1.1.1";
src = fetchurl {
url = "https://touchegg.googlecode.com/files/${name}.tar.gz";
sha256 = "95734815c7219d9a71282f3144b3526f2542b4fa270a8e69d644722d024b4038";
};
buildInputs = [ libX11 libXtst libXext ];
configurePhase = "qmake PREFIX=$out";
buildPhase = "make";
installPhase = ''
mkdir -p $out/usr/bin
mkdir -p $out/usr/lib
mkdir -p $out/usr/share
make install BASEDIR=$out
'';
meta = {
homepage = "https://code.google.com/p/touchegg/";
description = "Macro binding for touch surfaces";
license = stdenv.lib.licenses.gpl2;
};
}
...
thinkfan = callPackage ../tools/system/thinkfan { };
touchegg = callPackage ../tools/X11/touchegg {
inherit stdenv fetchurl libX11 libXtst libXext;
};
tup = callPackage ../development/tools/build-managers/tup { };
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment