mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 14:41:24 +01:00
Strip and pack final binary
This commit is contained in:
parent
358ae864fc
commit
a2fff9333f
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{ alcotest
|
||||
, bintools
|
||||
, bisect_ppx
|
||||
, buildDunePackage
|
||||
, core
|
||||
|
|
@ -13,6 +14,7 @@
|
|||
, re
|
||||
, reason
|
||||
, sha
|
||||
, upx
|
||||
,
|
||||
}:
|
||||
buildDunePackage {
|
||||
|
|
@ -39,6 +41,8 @@ buildDunePackage {
|
|||
substituteInPlace tests/spit*.sh --replace "/usr/bin/env" "${coreutils}/bin/env"
|
||||
'';
|
||||
postInstall = ''
|
||||
${bintools}/bin/strip --strip-unneeded $out/bin/flake_env
|
||||
${upx}/bin/upx $out/bin/flake_env
|
||||
install -m400 -D direnvrc $out/share/flake_env/direnvrc
|
||||
'';
|
||||
buildInputs = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue