2021-01-25 09:26:54 +01:00
|
|
|
{ lib, eggDerivation, fetchFromGitHub, chickenEggs }:
|
2014-10-14 00:41:03 +02:00
|
|
|
|
|
|
|
# Note: This mostly reimplements the default.nix already contained in
|
|
|
|
# the tarball. Is there a nicer way than duplicating code?
|
|
|
|
|
2014-10-27 01:13:23 +01:00
|
|
|
let
|
2018-11-14 04:17:50 +01:00
|
|
|
version = "c5-git";
|
2014-10-27 01:13:23 +01:00
|
|
|
in
|
2014-10-14 00:41:03 +02:00
|
|
|
eggDerivation {
|
2018-11-14 04:17:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "corngood";
|
|
|
|
repo = "egg2nix";
|
|
|
|
rev = "chicken-5";
|
|
|
|
sha256 = "1vfnhbcnyakywgjafhs0k5kpsdnrinzvdjxpz3fkwas1jsvxq3d1";
|
2014-10-14 00:41:03 +02:00
|
|
|
};
|
|
|
|
|
2014-10-27 01:13:23 +01:00
|
|
|
name = "egg2nix-${version}";
|
2014-10-14 00:41:03 +02:00
|
|
|
buildInputs = with chickenEggs; [
|
2018-11-14 04:17:50 +01:00
|
|
|
args matchable
|
2014-10-14 00:41:03 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-10-27 01:13:23 +01:00
|
|
|
description = "Generate nix-expression from CHICKEN scheme eggs";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/the-kenny/egg2nix";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ corngood ];
|
2014-10-14 00:41:03 +02:00
|
|
|
};
|
|
|
|
}
|