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
31
pkgs/tools/misc/ttyplot/default.nix
Normal file
31
pkgs/tools/misc/ttyplot/default.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ttyplot";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tenox7";
|
||||
repo = "ttyplot";
|
||||
rev = version;
|
||||
sha256 = "19qm0hx9ljdw9qg78lydn3c627xy7xnx3knq5f7caw9lf0cdp7kf";
|
||||
};
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
buildPhase = ''
|
||||
${stdenv.cc}/bin/cc ./ttyplot.c -lncurses -o ttyplot
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ttyplot $out/bin/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple general purpose plotting utility for tty with data input from stdin";
|
||||
homepage = "https://github.com/tenox7/ttyplot";
|
||||
license = licenses.unlicense;
|
||||
maintainers = with maintainers; [ lassulus ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue