mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
43 lines
1005 B
Nix
43 lines
1005 B
Nix
{ lib, 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 = "${src.name}/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 lib; {
|
|
description = "Manipulating CPC dsk images and files";
|
|
mainProgram = "cpcfs";
|
|
homepage = "https://github.com/derikz/cpcfs/" ;
|
|
license = licenses.bsd2;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|