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