mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
a30ae78435
* xonsh-unwrapped: add passthru.updateScript * xonsh-unwrapped: move to pkgs/shells/xonsh/unwrapped.nix * xonsh-unwrapped: incorporate into xonsh wrapper * xonsh: migrate to by-name * xonsh: refactor - get rid of rec - Boolean pyproject - reorder attributes - get rid of nested with - change meta.maintainers: - remove vrthra - add AndersonTorres * xonsh: 0.14.0 -> 0.14.1 * xonsh: 0.14.1 -> 0.14.2 * xonsh: 0.14.2 -> 0.14.3 * xonsh: 0.14.3 -> 0.14.4
24 lines
527 B
Nix
24 lines
527 B
Nix
{ lib
|
|
, callPackage
|
|
, extraPackages ? (ps: [ ])
|
|
, runCommand
|
|
}:
|
|
|
|
let
|
|
xonsh-unwrapped = callPackage ./unwrapped.nix { };
|
|
inherit (xonsh-unwrapped.passthru) python;
|
|
|
|
pythonEnv = python.withPackages (ps: [
|
|
(ps.toPythonModule xonsh-unwrapped)
|
|
] ++ extraPackages ps);
|
|
in
|
|
runCommand "xonsh-${xonsh-unwrapped.version}"
|
|
{
|
|
inherit (xonsh-unwrapped) pname version meta passthru;
|
|
} ''
|
|
mkdir -p $out/bin
|
|
for bin in ${lib.getBin xonsh-unwrapped}/bin/*; do
|
|
ln -s ${pythonEnv}/bin/$(basename "$bin") $out/bin/
|
|
done
|
|
''
|