From 9597247cc03997655fde22e635bba845d40189d2 Mon Sep 17 00:00:00 2001 From: Cole Scott Date: Sat, 8 Apr 2017 02:10:54 +0200 Subject: [PATCH] arm-frc-linux-gnueabi-linux-api-headers: init at 3.19-r0.36 --- .../default.nix | 43 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100755 pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix diff --git a/pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix b/pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix new file mode 100755 index 00000000000..29e349e0a82 --- /dev/null +++ b/pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nix @@ -0,0 +1,43 @@ +{stdenv, fetchurl}: + +let + _target = "arm-frc-linux-gnueabi"; + _basever = "3.19-r0.36"; + src = fetchurl { + url = "http://download.ni.com/ni-linux-rt/feeds/2016/arm/ipk/cortexa9-vfpv3/linux-libc-headers-dev_${_basever}_cortexa9-vfpv3.ipk"; + sha256 = "10066ddb9a19bf764a9a67919a7976478041e98c44c19308f076c78ecb07408c"; + }; +in +stdenv.mkDerivation rec { + version = "3.19"; + name = "${_target}-linux-api-headers-${version}"; + + sourceRoot = "."; + inherit src; + + phases = [ "unpackPhase" "installPhase" ]; + + unpackCmd = '' + ar x $curSrc + tar xf data.tar.gz + ''; + + installPhase = '' + mkdir -p $out/${_target} + find . \( -name .install -o -name ..install.cmd \) -delete + cp -r usr/ $out/${_target} + ''; + + meta = { + description = "FRC linux api headers"; + longDescription = '' + All linux api headers required to compile the arm-frc-linux-gnuaebi-gcc + cross compiler and all user programs. + ''; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.colescott ]; + platforms = stdenv.lib.platforms.linux; + + priority = 1; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99e2ab0cda1..18cecf8b993 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -444,6 +444,8 @@ with pkgs; argyllcms = callPackage ../tools/graphics/argyllcms {}; + arm-frc-linux-gnueabi-linux-api-headers = callPackage ../development/libraries/arm-frc-linux-gnueabi-linux-api-headers {}; + arp-scan = callPackage ../tools/misc/arp-scan { }; artyFX = callPackage ../applications/audio/artyFX {};