I am trying to explore the gnu sed code base.
I can do this from the command line:
nix-shell '<nixpkgs>' -A gnused
unpackPhase
cd sed-4.8
configurePhase
buildPhase
and then edit the code under sed etc
However I would like to use ctags which is not installed:
nix-shell -p ctags
Installs the package but:
nix-shell '<nixpkgs>' -A gnused -p ctags
gets the error:
error: attribute 'gnused' in selection path 'gnused' not found
I realise I must use a shell.nix but can't find a mkShell example for the above.
P.S. Two invocations of nix-shell achieve the required result but this seems unwieldy:
nix-shell -p ctags
nix-shell '<nixpkgs>' -A gnused