mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
commit
6c86876295
1 changed files with 38 additions and 0 deletions
38
pkgs/by-name/pi/pioasm/package.nix
Normal file
38
pkgs/by-name/pi/pioasm/package.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, ninja
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "pioasm";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raspberrypi";
|
||||
repo = "pico-sdk";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-JNcxd86XNNiPkvipVFR3X255boMmq+YcuJXUP4JwInU=";
|
||||
};
|
||||
sourceRoot = "${finalAttrs.src.name}/tools/pioasm";
|
||||
|
||||
nativeBuildInputs = [ cmake ninja ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D pioasm $out/bin/pioasm
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Assemble PIO programs for Raspberry Pi Pico";
|
||||
homepage = "https://github.com/raspberrypi/pico-sdk";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ emilytrau ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "pioasm";
|
||||
};
|
||||
})
|
Loading…
Reference in a new issue