mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #216063 from Stunkymonkey/source-and-tags-phases
This commit is contained in:
commit
bc8aa1cdb0
|
@ -12,13 +12,12 @@
|
|||
# tag command must create file named $TAG_FILE
|
||||
sourceWithTagsDerivation = {name, src, srcDir ? ".", tagSuffix ? "_tags", createTagFiles ? []} :
|
||||
stdenv.mkDerivation {
|
||||
phases = "unpackPhase buildPhase";
|
||||
inherit src srcDir tagSuffix;
|
||||
name = "${name}-source-with-tags";
|
||||
nativeBuildInputs = [ unzip ];
|
||||
# using separate tag directory so that you don't have to glob that much files when starting your editor
|
||||
# is this a good choice?
|
||||
buildPhase =
|
||||
installPhase =
|
||||
let createTags = lib.concatStringsSep "\n"
|
||||
(map (a: ''
|
||||
TAG_FILE="$SRC_DEST/${a.name}$tagSuffix"
|
||||
|
|
Loading…
Reference in a new issue