git.iko.soy/typeable/nixpkgs
on master help sign in
raspberrypi-tools: Init at 2018-02-05
commit434722ba621ca85b0fbe195dddaa0eea5196e3c8 authorTuomas Tynkkynen <tuomas@tuxera.com> dateMon 2 Apr 2018, 23:19 (9 years ago) parent3320213
3 files changed+52
pkgs/os-specific/linux/firmware/raspberrypi/tools-dont-install-sysv-init-scripts.patch+20 pkgs/os-specific/linux/firmware/raspberrypi/tools.nix+31 pkgs/top-level/all-packages.nix+1
pkgs/os-specific/linux/firmware/raspberrypi/tools-dont-install-sysv-init-scripts.patchnew file+20
@@ -0,0 +1,20 @@
1+diff --git a/interface/vmcs_host/linux/vcfiled/CMakeLists.txt b/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
2+index aed0e83..b325676 100644
3+--- a/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
4++++ b/interface/vmcs_host/linux/vcfiled/CMakeLists.txt
5+@@ -17,15 +17,6 @@ target_link_libraries(vcfiled
6+ install(TARGETS vcfiled
7+ RUNTIME DESTINATION sbin)
8+
9+-configure_file (etc/init.d/vcfiled ${PROJECT_BINARY_DIR}/etc/init.d/vcfiled)
10+-
11+-# script to start up vcfiled at start of day
12+-install(PROGRAMS ${PROJECT_BINARY_DIR}/etc/init.d/vcfiled
13+- DESTINATION /etc/init.d)
14+-# install locally to the installation directory too
15+-install(PROGRAMS ${PROJECT_BINARY_DIR}/etc/init.d/vcfiled
16+- DESTINATION ${VMCS_INSTALL_PREFIX}/share/install)
17+-
18+ # test program for vcfiled_check library
19+ add_executable(vcfiled_lock_test vcfiled_lock_test.c)
20+ target_link_libraries(vcfiled_lock_test vcfiled_check)
pkgs/os-specific/linux/firmware/raspberrypi/tools.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ name = "raspberrypi-tools-${version}";
5+ version = "2018-02-05";
6+
7+ src = fetchFromGitHub {
8+ owner = "raspberrypi";
9+ repo = "userland";
10+ rev = "a343dcad1dae4e93f4bfb99496697e207f91027e";
11+ sha256 = "1z4qrwjb7x3a45mx978q8vyhnx068sgzhymm4z0ayhckji4ngal1";
12+ };
13+
14+ patches = [ ./tools-dont-install-sysv-init-scripts.patch ];
15+
16+ nativeBuildInputs = [ cmake pkgconfig ];
17+
18+ preConfigure = ''
19+ cmakeFlagsArray+=("-DVMCS_INSTALL_PREFIX=$out")
20+ '' + stdenv.lib.optionalString stdenv.isAarch64 ''
21+ cmakeFlagsArray+=("-DARM64=1")
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ description = "Userland tools for the Raspberry Pi board";
26+ homepage = https://github.com/raspberrypi/userland;
27+ license = licenses.bsd3;
28+ platforms = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
29+ maintainers = with maintainers; [ dezgeg viric tavyc ];
30+ };
31+}
pkgs/top-level/all-packages.nix+1
@@ -13852,6 +13852,7 @@ with pkgs;
1385213852 radeontop = callPackage ../os-specific/linux/radeontop { };
1385313853
1385413854 raspberrypifw = callPackage ../os-specific/linux/firmware/raspberrypi {};
13855+ raspberrypi-tools = callPackage ../os-specific/linux/firmware/raspberrypi/tools.nix {};
1385513856
1385613857 regionset = callPackage ../os-specific/linux/regionset { };
1385713858