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
28
pkgs/applications/editors/dit/default.nix
Normal file
28
pkgs/applications/editors/dit/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchurl, stdenv, libiconv, ncurses, lua }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dit";
|
||||
version = "0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://hisham.hm/dit/releases/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "0cmbyzqfz2qa83cg8lpjifn34wmx34c5innw485zh4vk3c0k8wlj";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses lua ]
|
||||
++ lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
# fix paths
|
||||
prePatch = ''
|
||||
patchShebangs tools/GenHeaders
|
||||
substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A console text editor for Unix that you already know how to use";
|
||||
homepage = "https://hisham.hm/dit/";
|
||||
license = licenses.gpl2;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ davidak ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue