mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
* Fix the build hook mechanism; pass the pointer graph to the hook.
This commit is contained in:
parent
52bf9b86bb
commit
581fc47783
3 changed files with 27 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -x
|
||||
#set -x
|
||||
|
||||
drv=$4
|
||||
|
||||
echo "HOOK for $drv" >&2
|
||||
|
||||
outPath=$(sed 's/Derive(\[\"\([^\"]*\)\".*/\1/' $drv)
|
||||
outPath=$(sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv)
|
||||
|
||||
echo "output path is $outPath" >&2
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ storeExpr=$($TOP/src/nix-instantiate/nix-instantiate build-hook.nix)
|
|||
|
||||
echo "store expr is $storeExpr"
|
||||
|
||||
outPath=$($TOP/src/nix-store/nix-store -qnfvvvvv "$storeExpr")
|
||||
outPath=$($TOP/src/nix-store/nix-store -quf "$storeExpr")
|
||||
|
||||
echo "output path is $outPath"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue