mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
17 lines
382 B
Nix
17 lines
382 B
Nix
{ lib
|
|
, python3Packages
|
|
|
|
, withGUI ? true
|
|
}:
|
|
let
|
|
mandown' = python3Packages.mandown.overrideAttrs (prev: {
|
|
propagatedBuildInputs = prev.propagatedBuildInputs ++ lib.optionals withGUI prev.passthru.optional-dependencies.gui;
|
|
});
|
|
mandownApp = python3Packages.toPythonApplication mandown';
|
|
in
|
|
mandownApp // {
|
|
meta = mandownApp.meta // {
|
|
mainProgram = "mandown";
|
|
};
|
|
}
|