1 { lib, stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }:
3 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "0rfbry0qy8mv746mzk9zdfffkdgq4w7invgb5cszjma2cp83q3i2";
15 sourceRoot = "${src.name}/src";
17 nativeBuildInputs = [ makeWrapper ncurses readline ronn ];
19 env.NIX_CFLAGS_COMPILE = "-std=gnu89";
22 substituteInPlace Makefile \
23 --replace '-ltermcap' '-lncurses' \
24 --replace '-L /usr/lib/termcap' ' '
30 mkdir -p $out/man/man1
32 ronn --roff ../template.doc --pipe > $out/man/man1/cpcfs.1
37 description = "Manipulating CPC dsk images and files";
38 mainProgram = "cpcfs";
39 homepage = "https://github.com/derikz/cpcfs/" ;
40 license = licenses.bsd2;
42 platforms = platforms.all;