nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 41 lines 973 B view raw
1{ lib, stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }: 2 3stdenv.mkDerivation rec { 4 5 pname = "cpcfs"; 6 version = "0.85.4"; 7 8 src = fetchFromGitHub { 9 owner = "derikz"; 10 repo = "cpcfs"; 11 rev = "v${version}"; 12 sha256 = "0rfbry0qy8mv746mzk9zdfffkdgq4w7invgb5cszjma2cp83q3i2"; 13 }; 14 15 sourceRoot = "source/src"; 16 17 nativeBuildInputs = [ makeWrapper ncurses readline ronn ]; 18 19 postPatch = '' 20 substituteInPlace Makefile \ 21 --replace '-ltermcap' '-lncurses' \ 22 --replace '-L /usr/lib/termcap' ' ' 23 ''; 24 25 installPhase = '' 26 runHook preInstall 27 mkdir -p $out/bin 28 mkdir -p $out/man/man1 29 cp cpcfs $out/bin 30 ronn --roff ../template.doc --pipe > $out/man/man1/cpcfs.1 31 runHook postInstall 32 ''; 33 34 meta = with lib; { 35 description = "Manipulating CPC dsk images and files"; 36 homepage = "https://github.com/derikz/cpcfs/" ; 37 license = licenses.bsd2; 38 maintainers = [ ]; 39 platforms = platforms.all; 40 }; 41}