nixpkgs-suyu/pkgs/development/idris-modules/curses.nix

34 lines
828 B
Nix
Raw Normal View History

2018-03-16 12:40:17 +01:00
{ build-idris-package
, fetchFromGitHub
, effects
, lib
, ncurses
}:
build-idris-package {
name = "curses";
version = "2017-10-12";
2018-07-02 05:18:21 +02:00
idrisDeps = [ effects ];
2018-03-16 12:40:17 +01:00
2018-07-02 05:18:21 +02:00
extraBuildInputs = [ ncurses ];
2018-03-16 12:40:17 +01:00
postUnpack = ''
sed -i 's/^libs = curses$/libs = ncurses/g' source/curses.ipkg
sed -i 's/\#include <curses.h>/#include \<ncurses.h\>/g' source/src/cursesrun.h
'';
src = fetchFromGitHub {
owner = "JakobBruenker";
repo = "curses-idris";
rev = "ea4bbcfcf691f0dc731f2dfa676011809db084cb";
sha256 = "17q8hg5f61lk2kh3j4cwrwja282sihlcjdrx233z4237alp9w4g1";
};
meta = {
description = "libusb binding for idris and Effectful curses programming";
homepage = https://github.com/JakobBruenker/curses-idris;
license = lib.licenses.mit;
maintainers = [ lib.maintainers.brainrape ];
};
}