2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, util-linux
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "bin2c";
|
|
|
|
version = "unstable-2020-05-30";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adobe";
|
|
|
|
repo = "bin2c";
|
|
|
|
rev = "4300880a350679a808dc05bdc2840368f5c24d9a";
|
|
|
|
sha256 = "sha256-PLo5kkN2k3KutVGumoXEB2x9MdxDUtpwAQZLwm4dDvw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2023-05-24 13:37:59 +00:00
|
|
|
checkTarget = "test";
|
|
|
|
checkInputs = [ util-linux ]; # uuidgen
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Embed binary & text files inside C binaries";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bin2c";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/adobe/bin2c";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.shadowrz ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|