2020-06-15 21:03:47 +02:00
|
|
|
# Utility script for building any arbitrary depot path in its folder.
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "depot-build" ''
|
|
|
|
TARGET=$(git rev-parse --show-prefix | sed 's|/$||')
|
|
|
|
echo "Building //$TARGET"
|
2020-08-05 04:12:58 +02:00
|
|
|
nix-build -A $(echo $TARGET | sed 's|/|.|g') $(${pkgs.git}/bin/git rev-parse --show-toplevel)
|
2020-06-15 21:03:47 +02:00
|
|
|
''
|