mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
haskell-yi: update to 0.10.1
This commit is contained in:
parent
c549ac9c1a
commit
0d858ba4c0
@ -1,65 +1,43 @@
|
||||
{ cabal, alex, binary, Cabal, cautiousFile, concreteTyperep
|
||||
, dataDefault, derive, Diff, dlist, dyre, filepath, fingertree
|
||||
, glib, gtk, hashable, hint, HUnit, lens, mtl, pango, parsec
|
||||
, pointedlist, QuickCheck, random, regexBase, regexTdfa, safe
|
||||
, split, tasty, tastyHunit, tastyQuickcheck, time, transformersBase
|
||||
, uniplate, unixCompat, unorderedContainers, utf8String, vty
|
||||
, xdgBasedir
|
||||
, withPango ? true
|
||||
# This file was auto-generated by cabal2nix. Please do NOT edit manually!
|
||||
|
||||
# User may need extra dependencies for their configuration file so we
|
||||
# want to specify it here to have them available when wrapping the
|
||||
# produced binary.
|
||||
, extraDepends ? [ ]
|
||||
{ cabal, binary, Cabal, cautiousFile, dataDefault, derive, dlist
|
||||
, dynamicState, dyre, filepath, glib, gtk, hashable, hint, HUnit
|
||||
, lens, makeWrapper, mtl, ooPrototypes, pango, parsec, pointedlist
|
||||
, QuickCheck, random, regexBase, regexTdfa, safe, semigroups, split
|
||||
, tagged, tasty, tastyHunit, tastyQuickcheck, text, time
|
||||
, transformersBase, unixCompat, unorderedContainers, utf8String
|
||||
, vty, wordTrie, xdgBasedir, yiLanguage, yiRope
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yi";
|
||||
version = "0.8.2";
|
||||
sha256 = "18rnyswsdzkh0jdcqfg8pr90mpm6xf11siv598svqkxg12d2qql9";
|
||||
version = "0.10.1";
|
||||
sha256 = "1vj4ndp43w7xlji4p2px79a8g90p64g54sr3hx4pzimwrlpmifk8";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
binary Cabal cautiousFile concreteTyperep dataDefault derive Diff
|
||||
dlist dyre filepath fingertree hashable hint lens mtl
|
||||
binary Cabal cautiousFile dataDefault derive dlist dynamicState
|
||||
dyre filepath glib gtk hashable hint lens mtl ooPrototypes pango
|
||||
parsec pointedlist QuickCheck random regexBase regexTdfa safe
|
||||
split time transformersBase uniplate unixCompat unorderedContainers
|
||||
utf8String vty xdgBasedir
|
||||
] ++ (if withPango then [ pango gtk glib ] else [ ]) ++ extraDepends;
|
||||
testDepends = [
|
||||
filepath HUnit QuickCheck tasty tastyHunit tastyQuickcheck
|
||||
semigroups split tagged text time transformersBase unixCompat
|
||||
unorderedContainers utf8String vty wordTrie xdgBasedir yiLanguage
|
||||
yiRope
|
||||
];
|
||||
buildTools = [ alex ];
|
||||
configureFlags = if withPango then "-fpango" else "-f-pango";
|
||||
doCheck = false;
|
||||
|
||||
# https://ghc.haskell.org/trac/ghc/ticket/9170
|
||||
noHaddock = self.ghc.version == "7.6.3";
|
||||
|
||||
# Allows Yi to find the libraries it needs at runtime.
|
||||
testDepends = [
|
||||
filepath HUnit lens QuickCheck semigroups tasty tastyHunit
|
||||
tastyQuickcheck text yiLanguage yiRope
|
||||
];
|
||||
buildTools = [ makeWrapper ];
|
||||
configureFlags = "-fpango -fvty";
|
||||
noHaddock = self.stdenv.lib.versionOlder self.ghc.version "7.8";
|
||||
postInstall = ''
|
||||
mv $out/bin/yi $out/bin/.yi-wrapped
|
||||
cat - > $out/bin/yi <<EOF
|
||||
#! ${self.stdenv.shell}
|
||||
# Trailing : is necessary for it to pick up Prelude &c.
|
||||
export GHC_PACKAGE_PATH=$(${self.ghc.GHCGetPackages} ${self.ghc.version} \
|
||||
| sed 's/-package-db\ //g' \
|
||||
| sed 's/^\ //g' \
|
||||
| sed 's/\ /:/g')\
|
||||
:$out/lib/ghc-${self.ghc.version}/package.conf.d/yi-$version.installedconf:
|
||||
|
||||
eval exec $out/bin/.yi-wrapped "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/yi
|
||||
wrapProgram $out/bin/yi --prefix GHC_PACKAGE_PATH : $out/lib/ghc-${self.ghc.version}/package.conf.d/yi-$version.installedconf:$GHC_PACKAGE_PATH
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://haskell.org/haskellwiki/Yi";
|
||||
description = "The Haskell-Scriptable Editor";
|
||||
license = self.stdenv.lib.licenses.gpl2;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
hydraPlatforms = self.stdenv.lib.platforms.none;
|
||||
maintainers = [ self.stdenv.lib.maintainers.fuuzetsu ];
|
||||
broken = true;
|
||||
maintainers = with self.stdenv.lib.maintainers; [ fuuzetsu ];
|
||||
};
|
||||
})
|
||||
|
@ -3090,9 +3090,7 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
|
||||
|
||||
wordTrie = callPackage ../development/libraries/haskell/word-trie {};
|
||||
|
||||
yi = callPackage ../applications/editors/yi/yi.nix {
|
||||
vty = self.vty_4_7_5;
|
||||
};
|
||||
yi = callPackage ../applications/editors/yi/yi.nix { };
|
||||
|
||||
yiContrib = callPackage ../applications/editors/yi/yi-contrib.nix {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user