diff --git a/pkgs/applications/editors/yi/yi-contrib.nix b/pkgs/applications/editors/yi/yi-contrib.nix new file mode 100644 index 000000000000..e2fadcca345d --- /dev/null +++ b/pkgs/applications/editors/yi/yi-contrib.nix @@ -0,0 +1,14 @@ +{ cabal, dataAccessor, filepath, mtl, split, yi }: + +cabal.mkDerivation (self: { + pname = "yi-contrib"; + version = "0.7.0"; + sha256 = "12x9ps5yrszr8dlj15kmsm9myq3gzd9x9nacvl3x6cq91wk53mzj"; + buildDepends = [ dataAccessor filepath mtl split yi ]; + meta = { + homepage = "http://haskell.org/haskellwiki/Yi"; + description = "Add-ons to Yi, the Haskell-Scriptable Editor"; + license = "GPL"; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/applications/editors/yi/yi.nix b/pkgs/applications/editors/yi/yi.nix new file mode 100644 index 000000000000..01ddd5a9d8e5 --- /dev/null +++ b/pkgs/applications/editors/yi/yi.nix @@ -0,0 +1,38 @@ +{ cabal, alex, binary, Cabal, cautiousFile, concreteTyperep +, dataAccessor, dataAccessorMtl, dataAccessorTemplate, derive, Diff +, dlist, dyre, filepath, fingertree, ghcPaths, hashable, hint +, HUnit, mtl, parsec, pointedlist, pureMD5, QuickCheck, random +, regexBase, regexTdfa, split, testFramework, testFrameworkHunit +, time, uniplate, unixCompat, unorderedContainers, utf8String, vty +, pango, gtk, gio, glib, cairo +, xdgBasedir +}: + +cabal.mkDerivation (self: { + pname = "yi"; + version = "0.7.0"; + sha256 = "0mzcjgp12k5mxb37r6chxsk726b1qxds49ch656bpgrg7n22w2j1"; + isLibrary = true; + isExecutable = true; + buildDepends = [ + binary Cabal cautiousFile concreteTyperep dataAccessor + dataAccessorMtl dataAccessorTemplate derive Diff dlist dyre + filepath fingertree ghcPaths hashable hint mtl parsec pointedlist + pureMD5 QuickCheck random regexBase regexTdfa split time uniplate + unixCompat unorderedContainers utf8String vty xdgBasedir pango gtk + gio glib cairo + ]; + testDepends = [ + filepath HUnit QuickCheck testFramework testFrameworkHunit + ]; + buildTools = [ alex ]; + meta = { + homepage = "http://haskell.org/haskellwiki/Yi"; + description = "The Haskell-Scriptable Editor"; + license = "GPL"; + platforms = self.ghc.meta.platforms; + }; + configureFlags="-fpango"; + jailbreak=true; + doCheck=false; # Tests fail in version on hackage because files are missing +}) diff --git a/pkgs/development/libraries/haskell/concreteTyperep/default.nix b/pkgs/development/libraries/haskell/concreteTyperep/default.nix new file mode 100644 index 000000000000..20894b844ac6 --- /dev/null +++ b/pkgs/development/libraries/haskell/concreteTyperep/default.nix @@ -0,0 +1,18 @@ +{ cabal, binary, hashable, QuickCheck, testFramework +, testFrameworkQuickcheck2 +}: + +cabal.mkDerivation (self: { + pname = "concrete-typerep"; + version = "0.1.0.2"; + sha256 = "07wy8drg4723zdy2172jrcvd5ir2c4ggcfz1n33jhm9iv3cl2app"; + buildDepends = [ binary hashable ]; + testDepends = [ + binary hashable QuickCheck testFramework testFrameworkQuickcheck2 + ]; + meta = { + description = "Binary and Hashable instances for TypeRep"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/data-accessor/data-accessor-mtl.nix b/pkgs/development/libraries/haskell/data-accessor/data-accessor-mtl.nix new file mode 100644 index 000000000000..ce550d02beb5 --- /dev/null +++ b/pkgs/development/libraries/haskell/data-accessor/data-accessor-mtl.nix @@ -0,0 +1,14 @@ +{ cabal, dataAccessor, mtl }: + +cabal.mkDerivation (self: { + pname = "data-accessor-mtl"; + version = "0.2.0.3"; + sha256 = "1aksmm4ykb96khgq5y4vd40zbn4c73hgl21xvyc295cwxsyrbvbk"; + buildDepends = [ dataAccessor mtl ]; + meta = { + homepage = "http://www.haskell.org/haskellwiki/Record_access"; + description = "Use Accessor to access state in mtl State monad class"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/haskell/pointedlist/default.nix b/pkgs/development/libraries/haskell/pointedlist/default.nix new file mode 100644 index 000000000000..881beafaca0f --- /dev/null +++ b/pkgs/development/libraries/haskell/pointedlist/default.nix @@ -0,0 +1,13 @@ +{ cabal, binary, derive }: + +cabal.mkDerivation (self: { + pname = "pointedlist"; + version = "0.6"; + sha256 = "16sfw77w46f7rjd1lpdfzi1bdgf81siy2sj71xqkqbsz6cvkjakg"; + buildDepends = [ binary derive ]; + meta = { + description = "A zipper-like comonad which works as a list, tracking a position"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index b045e63e6ba4..7db34335bf4b 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -767,6 +767,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x concatenative = callPackage ../development/libraries/haskell/concatenative {}; + concreteTyperep = callPackage ../development/libraries/haskell/concreteTyperep {}; + conduit = callPackage ../development/libraries/haskell/conduit {}; ConfigFile = callPackage ../development/libraries/haskell/ConfigFile {}; @@ -841,6 +843,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x dataAccessorTransformers = callPackage ../development/libraries/haskell/data-accessor/data-accessor-transformers.nix {}; + dataAccessorMtl = callPackage ../development/libraries/haskell/data-accessor/data-accessor-mtl.nix {}; + dataBinaryIeee754 = callPackage ../development/libraries/haskell/data-binary-ieee754 {}; dataDefault = callPackage ../development/libraries/haskell/data-default {}; @@ -1795,6 +1799,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x pointed = callPackage ../development/libraries/haskell/pointed {}; + pointedlist = callPackage ../development/libraries/haskell/pointedlist {}; + poolConduit = callPackage ../development/libraries/haskell/pool-conduit {}; pop3client = callPackage ../development/libraries/haskell/pop3-client {}; @@ -2604,6 +2610,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x QuickCheck = self.QuickCheck2; }; + yi = callPackage ../applications/editors/yi/yi.nix {}; + + yiContrib = callPackage ../applications/editors/yi/yi-contrib.nix {}; + xmobar = callPackage ../applications/misc/xmobar {}; xmonad = callPackage ../applications/window-managers/xmonad {};