mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #66469 from emilazy/update-blackmagic
blackmagic: 1.6.1 -> unstable-2019-08-13
This commit is contained in:
commit
24870b40d6
3 changed files with 16 additions and 14 deletions
|
@ -1,28 +1,30 @@
|
|||
{ stdenv, lib, fetchFromGitHub
|
||||
, gcc-arm-embedded, binutils-arm-embedded, libftdi
|
||||
, gcc-arm-embedded, libftdi1
|
||||
, python, pythonPackages
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "blackmagic-${version}";
|
||||
version = "1.6.1";
|
||||
pname = "blackmagic";
|
||||
version = "unstable-2019-08-13";
|
||||
# `git describe --always`
|
||||
firmwareVersion = "v1.6.1-317-gc9c8b08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blacksphere";
|
||||
repo = "blackmagic";
|
||||
rev = "29386aee140e5e99a958727358f60980418b4c88";
|
||||
sha256 = "05x19y80mixk6blpnfpfngy5d41jpjvdqgjzkmhv1qc03bhyhc82";
|
||||
rev = "c9c8b089f716c31433432f5ee54c5c206e4945cf";
|
||||
sha256 = "0175plba7h3r1p584ygkjlvg2clvxa2m0xfdcb2v8jza2vzc8ywd";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gcc-arm-embedded binutils-arm-embedded
|
||||
gcc-arm-embedded
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libftdi
|
||||
libftdi1
|
||||
python
|
||||
pythonPackages.intelhex
|
||||
];
|
||||
|
@ -30,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||
postPatch = ''
|
||||
# Prevent calling out to `git' to generate a version number:
|
||||
substituteInPlace src/Makefile \
|
||||
--replace '`git describe --always --dirty`' '${version}'
|
||||
--replace '$(shell git describe --always --dirty)' '${firmwareVersion}'
|
||||
|
||||
# Fix scripts that generate headers:
|
||||
for f in $(find scripts libopencm3/scripts -type f); do
|
||||
|
@ -41,6 +43,8 @@ stdenv.mkDerivation rec {
|
|||
buildPhase = "${stdenv.shell} ${./helper.sh}";
|
||||
installPhase = ":"; # buildPhase does this.
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "In-application debugger for ARM Cortex microcontrollers";
|
||||
longDescription = ''
|
||||
|
@ -56,7 +60,7 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
homepage = https://github.com/blacksphere/blackmagic;
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ pjones ];
|
||||
maintainers = with maintainers; [ pjones emily ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ out=${out:-/tmp}
|
|||
|
||||
################################################################################
|
||||
export CFLAGS=$NIX_CFLAGS_COMPILE
|
||||
export MAKEFLAGS="\
|
||||
${enableParallelBuilding:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}}"
|
||||
|
||||
################################################################################
|
||||
PRODUCTS="blackmagic.bin blackmagic.hex blackmagic_dfu.bin blackmagic_dfu.hex"
|
||||
|
|
|
@ -9111,11 +9111,7 @@ in
|
|||
bison = bison3;
|
||||
yacc = bison; # TODO: move to aliases.nix
|
||||
|
||||
blackmagic = callPackage ../development/tools/misc/blackmagic {
|
||||
stdenv = gcc6Stdenv;
|
||||
gcc-arm-embedded = pkgsCross.arm-embedded.buildPackages.gcc;
|
||||
binutils-arm-embedded = pkgsCross.arm-embedded.buildPackages.binutils;
|
||||
};
|
||||
blackmagic = callPackage ../development/tools/misc/blackmagic { };
|
||||
|
||||
bloaty = callPackage ../development/tools/bloaty { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue