Skip to content

Instantly share code, notes, and snippets.

@rdesfo
Last active August 29, 2015 14:14
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 rdesfo/f34656bc79ace9f842c1 to your computer and use it in GitHub Desktop.
Save rdesfo/f34656bc79ace9f842c1 to your computer and use it in GitHub Desktop.
nix install cabal2bix default.nix file
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
{ cabal, alex, binary, dataDefault, derive, filepath, hashable
, hspec, lens, ooPrototypes, pointedlist, QuickCheck, regexBase
, regexTdfa, transformersBase, unorderedContainers
}:
cabal.mkDerivation (self: {
pname = "yi-language";
version = "0.1.1.0";
sha256 = "1gsh0njslncfh0r5wg1rq9w4f03ixkk5grd9zigkspsndhij7379";
buildDepends = [
binary dataDefault derive hashable lens ooPrototypes pointedlist
regexBase regexTdfa transformersBase unorderedContainers
];
testDepends = [
binary dataDefault derive filepath hashable hspec lens pointedlist
QuickCheck regexBase regexTdfa transformersBase unorderedContainers
];
buildTools = [ alex ];
meta = {
homepage = "https://github.com/yi-editor/yi-language";
description = "Collection of language-related Yi libraries";
license = self.stdenv.lib.licenses.gpl2;
platforms = self.ghc.meta.platforms;
maintainers = with self.stdenv.lib.maintainers; [ fuuzetsu ];
};
})

I'm trying to update the yi-language library, but I get the following error when I try to install the updated default.nix file.

$ nix-env -if default.nix
error: cannot auto-call a function that has an argument without a default value (‘cabal’)

here is the diff:

git diff
diff --git a/pkgs/development/libraries/haskell/yi-language/default.nix b/pkgs/development/libraries/haskell/yi
index d7a6a68..ec5070c 100644
--- a/pkgs/development/libraries/haskell/yi-language/default.nix
+++ b/pkgs/development/libraries/haskell/yi-language/default.nix
@@ -7,8 +7,8 @@
 
 cabal.mkDerivation (self: {
   pname = "yi-language";
-  version = "0.1.0.8";
-  sha256 = "1lzn1yswrh72lqvc5xcna2xjv5zs3x1mzc1ijkqjl84nvqcabj60";
+  version = "0.1.1.0";
+  sha256 = "1gsh0njslncfh0r5wg1rq9w4f03ixkk5grd9zigkspsndhij7379";
   buildDepends = [
     binary dataDefault derive hashable lens ooPrototypes pointedlist
     regexBase regexTdfa transformersBase unorderedContainers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment