uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 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 @@
|
|||
{ 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 = "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 lib; {
|
||||
description = "Manipulating CPC dsk images and files";
|
||||
homepage = "https://github.com/derikz/cpcfs/" ;
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue