11 srcAll = fetchFromGitHub {
15 sha256 = "sha256-OWR+yo+SnYaMd8J+ku9ettZi+rDHcHlGZCoucCiRkCI=";
19 subprj, # The only mandatory argument
23 stdenv.mkDerivation (finalAttrs: {
24 pname = "wiringpi-${subprj}";
26 sourceRoot = "${src.name}/${subprj}";
28 # Remove (meant for other OSs) lines from Makefiles
30 sed -i "/chown root/d" Makefile
31 sed -i "/chmod/d" Makefile
34 "DESTDIR=${placeholder "out"}"
36 # On NixOS we don't need to run ldconfig during build:
41 # Helps nix-update and probably nixpkgs-update find the src of this package
45 wiringPi = mkSubProject {
47 buildInputs = [ libxcrypt ];
49 devLib = mkSubProject {
51 buildInputs = [ passthru.wiringPi ];
53 wiringPiD = mkSubProject {
73 name = "wiringpi-${version}";
82 description = "Gordon's Arduino wiring-like WiringPi Library for the Raspberry Pi (Unofficial Mirror for WiringPi bindings)";
83 homepage = "https://github.com/WiringPi/WiringPi";
84 license = licenses.lgpl3Plus;
85 maintainers = with maintainers; [ doronbehar ];
86 platforms = platforms.linux;