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