6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
11 owner = "atomicobject";
14 hash = "sha256-Nm9/+JFMDXY1N90hmNFGh755V2sXSRQ4VBN9f8TcsGk=";
17 makeFlags = [ "PREFIX=$(out)" ];
20 mkdir -p $out/{bin,lib,include}
26 doInstallCheck = true;
27 installCheckPhase = ''
28 runHook preInstallCheck
29 echo "Hello world" | \
30 $out/bin/heatshrink -e - | \
31 $out/bin/heatshrink -d - | \
33 runHook postInstallCheck
37 description = "A data compression/decompression library for embedded/real-time systems";
38 homepage = "https://github.com/atomicobject/heatshrink";
39 license = licenses.isc;
40 maintainers = with maintainers; [ fgaz ];
41 platforms = platforms.all;