btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / compilers / chicken / 4 / egg2nix.nix
blobe175f17e1ab7e918e6336873cb9f2e7c933841eb
1 { lib, eggDerivation, fetchFromGitHub, chickenEggs }:
3 # Note: This mostly reimplements the default.nix already contained in
4 # the tarball. Is there a nicer way than duplicating code?
6 eggDerivation rec {
7   name = "egg2nix-${version}";
8   version = "0.5";
10   src = fetchFromGitHub {
11     owner = "the-kenny";
12     repo = "egg2nix";
13     rev = version;
14     sha256 = "sha256-5ov2SWVyTUQ6NHnZNPRywd9e7oIxHlVWv4uWbsNaj/s=";
15   };
17   buildInputs = with chickenEggs; [
18     matchable http-client
19   ];
21   meta = {
22     description = "Generate nix-expression from CHICKEN scheme eggs";
23     mainProgram = "egg2nix";
24     homepage = "https://github.com/the-kenny/egg2nix";
25     license = lib.licenses.bsd3;
26     platforms = lib.platforms.unix;
27     maintainers = with lib.maintainers; [ corngood ];
28   };