babashka: Remove superfluous removal of references

This commit is contained in:
James Conroy-Finn 2023-11-26 11:12:24 +00:00
parent 56aedbd477
commit c973975aa0
No known key found for this signature in database
GPG Key ID: 37A8786A2C3CD764

View File

@ -1,7 +1,6 @@
{ lib
, buildGraalvmNativeImage
, graalvmCEPackages
, removeReferencesTo
, fetchurl
, writeScript
, installShellFiles
@ -21,7 +20,7 @@ let
executable = "bb";
nativeBuildInputs = [ removeReferencesTo installShellFiles ];
nativeBuildInputs = [ installShellFiles ];
extraNativeImageBuildArgs = [
"-H:+ReportExceptionStackTraces"
@ -39,11 +38,7 @@ let
$out/bin/bb '(prn "bépo àê")' | fgrep 'bépo àê'
'';
# As of v1.2.174, this will remove references to ${graalvmDrv}/conf/chronology,
# not sure the implications of this but this file is not available in
# graalvm-ce anyway.
postInstall = ''
remove-references-to -t ${graalvmDrv} $out/bin/${executable}
installShellCompletion --cmd bb --bash ${./completions/bb.bash}
installShellCompletion --cmd bb --zsh ${./completions/bb.zsh}
installShellCompletion --cmd bb --fish ${./completions/bb.fish}