mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
ghc-mod: Wrap to call ghc-get-packages.sh first
This commit is contained in:
parent
0021d4495e
commit
ef72e19b27
@ -25,6 +25,14 @@ cabal.mkDerivation (self: {
|
|||||||
cd ..
|
cd ..
|
||||||
ensureDir "$out/share/emacs"
|
ensureDir "$out/share/emacs"
|
||||||
mv $pname-$version emacs/site-lisp
|
mv $pname-$version emacs/site-lisp
|
||||||
|
mv $out/bin/ghc-mod $out/ghc-mod
|
||||||
|
cat - > $out/bin/ghc-mod <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
COMMAND=\$1
|
||||||
|
shift
|
||||||
|
eval exec $out/ghc-mod \$COMMAND \$( ${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} | tr " " "\n" | tail -n +2 | paste -d " " - - | sed 's/.*/-g "&"/' | tr "\n" " ") "\$@"
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/ghc-mod
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.mew.org/~kazu/proj/ghc-mod/";
|
homepage = "http://www.mew.org/~kazu/proj/ghc-mod/";
|
||||||
@ -34,6 +42,7 @@ cabal.mkDerivation (self: {
|
|||||||
maintainers = [
|
maintainers = [
|
||||||
self.stdenv.lib.maintainers.andres
|
self.stdenv.lib.maintainers.andres
|
||||||
self.stdenv.lib.maintainers.bluescreen303
|
self.stdenv.lib.maintainers.bluescreen303
|
||||||
|
self.stdenv.lib.maintainers.ocharles
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
|
aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
|
||||||
all = "Nix Committers <nix-commits@lists.science.uu.nl>";
|
all = "Nix Committers <nix-commits@lists.science.uu.nl>";
|
||||||
amiddelk = "Arie Middelkoop <amiddelk@gmail.com>";
|
amiddelk = "Arie Middelkoop <amiddelk@gmail.com>";
|
||||||
andres = "Andres Loeh <ksnixos@andres-loeh.de>";
|
|
||||||
amorsillo = "Andrew Morsillo <andrew.morsillo@gmail.com>";
|
amorsillo = "Andrew Morsillo <andrew.morsillo@gmail.com>";
|
||||||
|
andres = "Andres Loeh <ksnixos@andres-loeh.de>";
|
||||||
antono = "Antono Vasiljev <self@antono.info>";
|
antono = "Antono Vasiljev <self@antono.info>";
|
||||||
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
|
||||||
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
aszlig = "aszlig <aszlig@redmoonstudios.org>";
|
||||||
@ -34,6 +34,7 @@
|
|||||||
marcweber = "Marc Weber <marco-oweber@gmx.de>";
|
marcweber = "Marc Weber <marco-oweber@gmx.de>";
|
||||||
modulistic = "Pablo Costa <modulistic@gmail.com>";
|
modulistic = "Pablo Costa <modulistic@gmail.com>";
|
||||||
mornfall = "Petr Ročkai <me@mornfall.net>";
|
mornfall = "Petr Ročkai <me@mornfall.net>";
|
||||||
|
ocharles = "Oliver Charles <ollie@ocharles.org.uk>";
|
||||||
offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
|
offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
|
||||||
orbitz = "Malcolm Matalka <mmatalka@gmail.com>";
|
orbitz = "Malcolm Matalka <mmatalka@gmail.com>";
|
||||||
page = "Carles Pagès <page@cubata.homelinux.net>";
|
page = "Carles Pagès <page@cubata.homelinux.net>";
|
||||||
|
Loading…
Reference in New Issue
Block a user