mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
heatshrink: add cmake build script
Wanted by prusa-slicer and libbgcode
This commit is contained in:
parent
bd9c192fc0
commit
fa36136cee
@ -1,6 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,14 +16,17 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-Nm9/+JFMDXY1N90hmNFGh755V2sXSRQ4VBN9f8TcsGk=";
|
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 = ''
|
nativeBuildInputs = [
|
||||||
mkdir -p $out/{bin,lib,include}
|
cmake
|
||||||
'';
|
];
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
checkTarget = "test";
|
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user