nixpkgs/pkgs/development/tools/bin2c/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
729 B
Nix

{ 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;
};
}