diff options
author | Yaroslav Bolyukin <iam@lach.pw> | 2023-11-25 14:14:49 +0100 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-30 13:13:37 +0000 |
commit | 1970789c11eaf2e6c31769db05eed93e4f331845 (patch) | |
tree | dcb42d381a49e12a33ec0e51b76086840e8924fd /pkgs | |
parent | 6b83b42721c0490760b44a9db17a1dbdb99cc764 (diff) |
heatshrink: add cmake build script
Wanted by prusa-slicer and libbgcode (cherry picked from commit fa36136ceed0e2c58e0c9e21492a7e60c3a64470)
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/compression/heatshrink/default.nix | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/tools/compression/heatshrink/default.nix b/pkgs/tools/compression/heatshrink/default.nix index 49ef7354cbc91..b5cfb92247afa 100644 --- a/pkgs/tools/compression/heatshrink/default.nix +++ b/pkgs/tools/compression/heatshrink/default.nix @@ -1,6 +1,8 @@ { lib , stdenv , fetchFromGitHub +, cmake +, fetchpatch }: stdenv.mkDerivation rec { @@ -14,14 +16,17 @@ stdenv.mkDerivation rec { hash = "sha256-Nm9/+JFMDXY1N90hmNFGh755V2sXSRQ4VBN9f8TcsGk="; }; - makeFlags = [ "PREFIX=$(out)" ]; + patches = [ + # Add CMake build script, wanted by prusa-slicer and libbgcode, which are the only users of this library. + (fetchpatch { + url = "https://github.com/atomicobject/heatshrink/commit/0886e9ca76552b8e325841e2b820b4563e5d5aba.patch"; + hash = "sha256-13hy4+/RDaaKgQcdaSbACvMfElUIskvJ+owXqm40feY="; + }) + ]; - preInstall = '' - mkdir -p $out/{bin,lib,include} - ''; - - doCheck = true; - checkTarget = "test"; + nativeBuildInputs = [ + cmake + ]; doInstallCheck = true; installCheckPhase = '' |