Skip to content

Instantly share code, notes, and snippets.

@dmalikov
Created September 6, 2014 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmalikov/237eddf700e5849b055f to your computer and use it in GitHub Desktop.
Save dmalikov/237eddf700e5849b055f to your computer and use it in GitHub Desktop.
you prolly should just add '.' to the end of the path to make nix happy, obv
cabal.mkDerivation (self: {
pname = "cabal2nix";
version = "0.1";
src = /home/yep/git/cabal2nix/;
isLibrary = true;
$ nix-shell -p myHaskellPackages.cabal2nix
error: syntax error, unexpected ';', at /home/yep/.nixpkgs/cabal2nix/default.nix:14:32
(use `--show-trace' to show detailed location information)
cabal.mkDerivation (self: {
pname = "cabal2nix";
version = "0.1";
src = /home/yep/git/cabal2nix/.;
isLibrary = true;
$ nix-shell -p myHaskellPackages.cabal2nix
these derivations will be built:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment