summary refs log tree commit diff
path: root/pkgs/development/libraries/haskell/readline/default.nix
blob: 898b005c4da823639a21f2aacdf4c4eb0a0851bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ cabal, readline, ncurses } :

cabal.mkDerivation (self : {
  pname = "readline";
  version = "1.0.1.0";
  sha256 = "07f2f039f32bf18838a4875d0f3caa3ed9436dd52b962b2061f0bb8a3316fa1d";
  propagatedBuildInputs = [ readline ncurses ];
  # experimentally link with ncursesw because ghci can't interpret ld scripts,
  # and ncurses sometimes seems to be a script pointing to ncursesw
  postConfigure = ''
    sed -i -e "/^extra-libraries/ s/ncurses/ncursesw/" readline.buildinfo
  '';
  meta = {
    description = "An interface to the GNU readline library";
    license = "GPL";
    platforms = self.ghc.meta.platforms;
    maintainers = [
      self.stdenv.lib.maintainers.andres
      self.stdenv.lib.maintainers.simons
    ];
  };
})