1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Merge pull request #105562 from ju1m/arduino-mk

arduino-mk: wrap python scripts
This commit is contained in:
Sandro 2020-12-01 16:39:38 +01:00 committed by GitHub
commit 72cb12e4ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, python3Packages, installShellFiles }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.6.0"; version = "1.6.0";
@ -11,8 +11,16 @@ stdenv.mkDerivation rec {
sha256 = "0flpl97d2231gp51n3y4qvf3y1l8xzafi1sgpwc305vwc2h4dl2x"; sha256 = "0flpl97d2231gp51n3y4qvf3y1l8xzafi1sgpwc305vwc2h4dl2x";
}; };
phases = ["installPhase"]; nativeBuildInputs = [ python3Packages.wrapPython installShellFiles ];
installPhase = "ln -s $src $out"; propagatedBuildInputs = with python3Packages; [ pyserial ];
installPhase = ''
mkdir $out
cp -rT $src $out
installManPage *.1
'';
postFixupPhase = ''
wrapPythonPrograms
'';
meta = { meta = {
description = "Makefile for Arduino sketches"; description = "Makefile for Arduino sketches";