2019-05-11 16:03:59 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "cpcfs";
|
|
|
|
version = "0.85.4";
|
2020-11-18 08:42:33 +00:00
|
|
|
|
2019-05-11 16:03:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "derikz";
|
|
|
|
repo = "cpcfs";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rfbry0qy8mv746mzk9zdfffkdgq4w7invgb5cszjma2cp83q3i2";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ncurses readline ronn ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '-ltermcap' '-lncurses' \
|
|
|
|
--replace '-L /usr/lib/termcap' ' '
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/man/man1
|
|
|
|
cp cpcfs $out/bin
|
|
|
|
ronn --roff ../template.doc --pipe > $out/man/man1/cpcfs.1
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Manipulating CPC dsk images and files";
|
|
|
|
homepage = "https://github.com/derikz/cpcfs/" ;
|
|
|
|
license = licenses.bsd2;
|
2020-11-17 16:50:53 +00:00
|
|
|
maintainers = [ ];
|
2019-05-11 16:03:59 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|