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
35
pkgs/tools/misc/tewisay/default.nix
Normal file
35
pkgs/tools/misc/tewisay/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub, makeWrapper }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "tewisay-unstable";
|
||||
version = "2017-04-14";
|
||||
|
||||
goPackagePath = "github.com/lucy/tewisay";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lucy";
|
||||
repo = "tewisay";
|
||||
rev = "e3fc38737cedb79d93b8cee07207c6c86db4e488";
|
||||
sha256 = "1na3xi4z90v8qydcvd3454ia9jg7qhinciy6kvgyz61q837cw5dk";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postInstall = ''
|
||||
install -D -t $out/share/tewisay/cows go/src/${goPackagePath}/cows/*.cow
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/tewisay \
|
||||
--prefix COWPATH : $out/share/tewisay/cows
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/lucy/tewisay";
|
||||
description = "Cowsay replacement with unicode and partial ansi escape support";
|
||||
license = licenses.cc0;
|
||||
maintainers = with maintainers; [ Madouura ];
|
||||
};
|
||||
}
|
||||
21
pkgs/tools/misc/tewisay/deps.nix
generated
Normal file
21
pkgs/tools/misc/tewisay/deps.nix
generated
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/mattn/go-runewidth";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/mattn/go-runewidth";
|
||||
rev = "97311d9f7767e3d6f422ea06661bc2c7a19e8a5d";
|
||||
sha256 = "0dxlrzn570xl7gb11hjy1v4p3gw3r41yvqhrffgw95ha3q9p50cg";
|
||||
};
|
||||
}
|
||||
{
|
||||
goPackagePath = "github.com/ogier/pflag";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/ogier/pflag";
|
||||
rev = "45c278ab3607870051a2ea9040bb85fcb8557481";
|
||||
sha256 = "0620v75wppfd84d95n312wpngcb73cph4q3ivs1h0waljfnsrd5l";
|
||||
};
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue