mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #315729 from Kansattica/ponysay
(ponysay): Add missing pre and post install hooks
This commit is contained in:
commit
fb9cc6a2ee
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||
inherit python3;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
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'))" \
|
||||
|
@ -24,6 +26,8 @@ stdenv.mkDerivation rec {
|
|||
python3 setup.py --prefix=$out --freedom=partial install \
|
||||
--with-shared-cache=$out/share/ponysay \
|
||||
--with-bash
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue