7 stdenv.mkDerivation (finalAttrs: {
11 src = fetchFromGitHub {
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-uUSXvMQcntUqD412UWkMif0wLxPhpPdnMb96Pqqh/B4=";
18 outputs = [ "dev" "lib" "out" ];
21 substituteInPlace src/libperiphery.pc.in \
22 --replace '=''${prefix}/' '=' \
23 --replace '=''${exec_prefix}/' '='
26 nativeBuildInputs = [ cmake ];
29 description = "C library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux";
30 homepage = "https://github.com/vsergeev/c-periphery";
31 license = licenses.mit;
32 maintainers = with maintainers; [ sikmir ];
33 platforms = platforms.linux;