Skip to content

Instantly share code, notes, and snippets.

@savannidgerinel
Created November 22, 2017 18:34
Show Gist options
  • Save savannidgerinel/551eb96fb1d180583e96a69bc1756115 to your computer and use it in GitHub Desktop.
Save savannidgerinel/551eb96fb1d180583e96a69bc1756115 to your computer and use it in GitHub Desktop.
pytags -- a ctags script that seems to generate a goodly amount of information about python
{ pkgs ? import <nixpkgs> {}
, ctags ? pkgs.ctags
, makeWrapper ? pkgs.makeWrapper
, makeBinPath ? pkgs.lib.makeBinPath
}:
pkgs.stdenv.mkDerivation {
name = "pytags";
buildInputs = [ ctags
makeWrapper
];
phases = [ "installPhase" ];
src = ./.;
installPhase = ''
mkdir -p $out/bin
cp $src/pytags.sh $out/bin/pytags.sh
makeWrapper $out/bin/pytags.sh $out/bin/pytags --prefix PATH : ${makeBinPath [ctags]}
'';
}
ctags -R --fields=+l --languages=python --python-kinds=-iv -f ./tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment