2021-01-25 08:26:54 +00:00
|
|
|
{ eggDerivation, fetchurl, chickenEggs }:
|
2014-10-13 23:41:03 +01:00
|
|
|
|
|
|
|
# Note: This mostly reimplements the default.nix already contained in
|
|
|
|
# the tarball. Is there a nicer way than duplicating code?
|
|
|
|
|
2014-10-27 00:13:23 +00:00
|
|
|
let
|
2015-01-19 14:43:25 +00:00
|
|
|
version = "0.5";
|
2014-10-27 00:13:23 +00:00
|
|
|
in
|
2014-10-13 23:41:03 +01:00
|
|
|
eggDerivation {
|
|
|
|
src = fetchurl {
|
2014-10-27 00:13:23 +00:00
|
|
|
url = "https://github.com/the-kenny/egg2nix/archive/${version}.tar.gz";
|
2015-01-19 14:43:25 +00:00
|
|
|
sha256 = "0adal428v4i7h9lzs7sfq75q2mxhsbf1qqwzrsjv8j41paars20y";
|
2014-10-13 23:41:03 +01:00
|
|
|
};
|
|
|
|
|
2014-10-27 00:13:23 +00:00
|
|
|
name = "egg2nix-${version}";
|
2014-10-13 23:41:03 +01:00
|
|
|
buildInputs = with chickenEggs; [
|
2014-10-18 01:07:38 +01:00
|
|
|
matchable http-client
|
2014-10-13 23:41:03 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2014-10-27 00:13:23 +00:00
|
|
|
description = "Generate nix-expression from CHICKEN scheme eggs";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/the-kenny/egg2nix";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ corngood ];
|
2014-10-13 23:41:03 +01:00
|
|
|
};
|
|
|
|
}
|