2014-10-14 00:41:03 +02:00
|
|
|
{ stdenv, eggDerivation, fetchurl, chickenEggs }:
|
|
|
|
|
|
|
|
# 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
|
2014-10-27 12:47:45 +01:00
|
|
|
version = "0.4";
|
2014-10-27 01:13:23 +01:00
|
|
|
in
|
2014-10-14 00:41:03 +02:00
|
|
|
eggDerivation {
|
|
|
|
src = fetchurl {
|
2014-10-27 01:13:23 +01:00
|
|
|
url = "https://github.com/the-kenny/egg2nix/archive/${version}.tar.gz";
|
2014-10-27 12:47:45 +01:00
|
|
|
sha256 = "1xn79fgqxg0i47asjah31zi56v60is1n8d0cy8w4gbj0i41z7pvm";
|
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; [
|
2014-10-18 02:07:38 +02:00
|
|
|
matchable http-client
|
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";
|
2014-10-14 00:41:03 +02:00
|
|
|
homepage = https://github.com/the-kenny/egg2nix;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.the-kenny ];
|
|
|
|
};
|
|
|
|
}
|