mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
e3a873479e
Deprecation warnings should not be used in Nixpkgs because they spam
innocent "nix-env -qa" users with (in this case) dozens of messages
that they can't do anything about.
This also reverts commit 2ca8833383
.
23 lines
556 B
Nix
23 lines
556 B
Nix
# Fetches a chicken egg from henrietta using `chicken-install -r'
|
|
# See: http://wiki.call-cc.org/chicken-projects/egg-index-4.html
|
|
|
|
{ stdenv, chicken }:
|
|
{ name, version, md5 ? "", sha256 ? "" }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "chicken-${name}-export";
|
|
builder = ./builder.sh;
|
|
buildInputs = [ chicken ];
|
|
|
|
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = if sha256 == "" then md5 else sha256;
|
|
|
|
inherit version;
|
|
|
|
eggName = name;
|
|
|
|
impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars;
|
|
}
|
|
|