python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / compression / heatshrink / default.nix
blob290e2dc9d8cab2acb88b021134c11af8ccd11bba
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 }:
6 stdenv.mkDerivation rec {
7   pname = "heatshrink";
8   version = "0.4.1";
10   src = fetchFromGitHub {
11     owner = "atomicobject";
12     repo = "heatshrink";
13     rev = "v${version}";
14     hash = "sha256-Nm9/+JFMDXY1N90hmNFGh755V2sXSRQ4VBN9f8TcsGk=";
15   };
17   makeFlags = [ "PREFIX=$(out)" ];
19   preInstall = ''
20     mkdir -p $out/{bin,lib,include}
21   '';
23   doCheck = true;
24   checkTarget = "test";
26   doInstallCheck = true;
27   installCheckPhase = ''
28     runHook preInstallCheck
29     echo "Hello world" | \
30       $out/bin/heatshrink -e - | \
31       $out/bin/heatshrink -d - | \
32       grep "Hello world"
33     runHook postInstallCheck
34   '';
36   meta = with lib; {
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;
42   };