nixpkgs/pkgs/by-name/xo/xonsh/package.nix
Anderson Torres a30ae78435
xonsh: 0.14.0 -> 0.14.4 (#282368)
* 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
2024-02-04 23:06:22 +01:00

23 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
''