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
|
{ alcotest
|
||||||
|
, bintools
|
||||||
, bisect_ppx
|
, bisect_ppx
|
||||||
, buildDunePackage
|
, buildDunePackage
|
||||||
, core
|
, core
|
||||||
|
|
@ -13,6 +14,7 @@
|
||||||
, re
|
, re
|
||||||
, reason
|
, reason
|
||||||
, sha
|
, sha
|
||||||
|
, upx
|
||||||
,
|
,
|
||||||
}:
|
}:
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
|
|
@ -39,6 +41,8 @@ buildDunePackage {
|
||||||
substituteInPlace tests/spit*.sh --replace "/usr/bin/env" "${coreutils}/bin/env"
|
substituteInPlace tests/spit*.sh --replace "/usr/bin/env" "${coreutils}/bin/env"
|
||||||
'';
|
'';
|
||||||
postInstall = ''
|
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
|
install -m400 -D direnvrc $out/share/flake_env/direnvrc
|
||||||
'';
|
'';
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue