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
36
pkgs/tools/misc/ponysay/default.nix
Normal file
36
pkgs/tools/misc/ponysay/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchFromGitHub, python3, texinfo, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ponysay";
|
||||
version = "unstable-2021-03-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "erkin";
|
||||
repo = "ponysay";
|
||||
rev = "8a2c71416e70e4e7b0931917ebfd6479f51ddf9a";
|
||||
sha256 = "sha256-LNc83E+7NFYYILORElNlYC7arQKGUJHv6phu+vM5xpQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ python3 texinfo ];
|
||||
|
||||
inherit python3;
|
||||
|
||||
installPhase = ''
|
||||
find -type f -name "*.py" | xargs sed -i "s@/usr/bin/env python3@$python3/bin/python3@g"
|
||||
substituteInPlace setup.py --replace \
|
||||
"fileout.write(('#!/usr/bin/env %s\n' % env).encode('utf-8'))" \
|
||||
"fileout.write(('#!%s/bin/%s\n' % (os.environ['python3'], env)).encode('utf-8'))"
|
||||
python3 setup.py --prefix=$out --freedom=partial install \
|
||||
--with-shared-cache=$out/share/ponysay \
|
||||
--with-bash
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cowsay reimplemention for ponies";
|
||||
homepage = "https://github.com/erkin/ponysay";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ bodil ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue