about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/bin2c/default.nix
blob: 2528b1ea09617835147e9769d7e88b7fbcf95bc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ 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)" ];

  doCheck = !stdenv.isDarwin;
  checkTarget = "test";
  checkInputs = [ util-linux ]; # uuidgen

  meta = with lib; {
    description = "Embed binary & text files inside C binaries";
    mainProgram = "bin2c";
    homepage = "https://github.com/adobe/bin2c";
    license = licenses.asl20;
    maintainers = [ maintainers.shadowrz ];
    platforms = platforms.all;
  };
}