cpcfs: init at 0.85.4
This commit is contained in:
parent
6ca0b1462f
commit
7b09727d37
2 changed files with 43 additions and 0 deletions
41
pkgs/tools/filesystems/cpcfs/default.nix
Normal file
41
pkgs/tools/filesystems/cpcfs/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "cpcfs";
|
||||
version = "0.85.4";
|
||||
|
||||
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;
|
||||
maintainers = [ maintainers.genesis ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -2261,6 +2261,8 @@ in
|
|||
|
||||
convoy = callPackage ../tools/filesystems/convoy { };
|
||||
|
||||
cpcfs = callPackage ../tools/filesystems/cpcfs { };
|
||||
|
||||
cool-retro-term = libsForQt5.callPackage ../applications/misc/cool-retro-term { };
|
||||
|
||||
coreutils = callPackage ../tools/misc/coreutils { };
|
||||
|
|
Loading…
Reference in a new issue