https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
41 lines
936 B
Nix
41 lines
936 B
Nix
{ stdenv, fetchurl, lib }:
|
|
|
|
let
|
|
pythonDocs = {
|
|
html = {
|
|
recurseForDerivations = true;
|
|
python27 = import ./2.7-html.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
python37 = import ./3.7-html.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
};
|
|
pdf_a4 = {
|
|
recurseForDerivations = true;
|
|
python27 = import ./2.7-pdf-a4.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
python37 = import ./3.7-pdf-a4.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
};
|
|
pdf_letter = {
|
|
recurseForDerivations = true;
|
|
python27 = import ./2.7-pdf-letter.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
python37 = import ./3.7-pdf-letter.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
};
|
|
text = {
|
|
recurseForDerivations = true;
|
|
python27 = import ./2.7-text.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
python37 = import ./3.7-text.nix {
|
|
inherit stdenv fetchurl lib;
|
|
};
|
|
};
|
|
}; in pythonDocs
|