nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 util-linux,
6}:
7
8stdenv.mkDerivation {
9 pname = "bin2c";
10 version = "0-unstable-2020-05-30";
11
12 src = fetchFromGitHub {
13 owner = "adobe";
14 repo = "bin2c";
15 rev = "4300880a350679a808dc05bdc2840368f5c24d9a";
16 sha256 = "sha256-PLo5kkN2k3KutVGumoXEB2x9MdxDUtpwAQZLwm4dDvw=";
17 };
18
19 makeFlags = [ "prefix=$(out)" ];
20
21 doCheck = !stdenv.hostPlatform.isDarwin;
22 checkTarget = "test";
23 checkInputs = [ util-linux ]; # uuidgen
24
25 meta = {
26 description = "Embed binary & text files inside C binaries";
27 mainProgram = "bin2c";
28 homepage = "https://github.com/adobe/bin2c";
29 license = lib.licenses.asl20;
30 maintainers = [ lib.maintainers.shadowrz ];
31 platforms = lib.platforms.all;
32 };
33}