forked from toolshed/abra
refactor: reverts to buildPhase
This commit is contained in:
15
package.nix
15
package.nix
@ -23,11 +23,18 @@ buildGo126Module rec {
|
||||
];
|
||||
|
||||
env.CGO_ENABLED = 0;
|
||||
ldflags = [
|
||||
"-s -w -X 'main.Commit=${rev}' -X 'main.Version=${version}'"
|
||||
];
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
go build -ldflags="-s -w -X 'main.Commit=${rev}' -X 'main.Version=${version}'" ./cmd/abra
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D abra $out/bin/abra
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
postInstall = ''
|
||||
export ABRA_DIR="$out"
|
||||
$out/bin/abra autocomplete bash >abra.bash
|
||||
|
||||
Reference in New Issue
Block a user