Created
November 22, 2017 18:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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]} | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment