mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
packaging: Restore .version value altering behavior
This commit is contained in:
parent
7dd938b228
commit
93b50857ed
1 changed files with 6 additions and 1 deletions
|
@ -81,9 +81,14 @@ mkMesonDerivation (finalAttrs: {
|
|||
disallowedReferences = [ boost ];
|
||||
|
||||
preConfigure =
|
||||
# TODO: change release process to add `pre` in `.version`, remove it before tagging, and restore after.
|
||||
''
|
||||
chmod u+w ./.version
|
||||
echo ${version} > ../../.version
|
||||
''
|
||||
# Copy some boost libraries so we don't get all of Boost in our
|
||||
# closure. https://github.com/NixOS/nixpkgs/issues/45462
|
||||
lib.optionalString (!stdenv.hostPlatform.isStatic) (''
|
||||
+ lib.optionalString (!stdenv.hostPlatform.isStatic) (''
|
||||
mkdir -p $out/lib
|
||||
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
|
||||
rm -f $out/lib/*.a
|
||||
|
|
Loading…
Reference in a new issue