mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
arduino-mk: wrap python scripts
This commit is contained in:
parent
eb079d22f8
commit
6b7a85e0aa
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
{ stdenv, fetchFromGitHub, python3Packages, installShellFiles }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.6.0";
|
||||
@ -11,8 +11,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0flpl97d2231gp51n3y4qvf3y1l8xzafi1sgpwc305vwc2h4dl2x";
|
||||
};
|
||||
|
||||
phases = ["installPhase"];
|
||||
installPhase = "ln -s $src $out";
|
||||
nativeBuildInputs = [ python3Packages.wrapPython installShellFiles ];
|
||||
propagatedBuildInputs = with python3Packages; [ pyserial ];
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -rT $src $out
|
||||
installManPage *.1
|
||||
'';
|
||||
postFixupPhase = ''
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Makefile for Arduino sketches";
|
||||
|
Loading…
Reference in New Issue
Block a user