mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
packaging: Restore .version value altering behavior
This commit is contained in:
parent
7dd938b228
commit
93b50857ed
@ -81,9 +81,14 @@ mkMesonDerivation (finalAttrs: {
|
|||||||
disallowedReferences = [ boost ];
|
disallowedReferences = [ boost ];
|
||||||
|
|
||||||
preConfigure =
|
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
|
# Copy some boost libraries so we don't get all of Boost in our
|
||||||
# closure. https://github.com/NixOS/nixpkgs/issues/45462
|
# closure. https://github.com/NixOS/nixpkgs/issues/45462
|
||||||
lib.optionalString (!stdenv.hostPlatform.isStatic) (''
|
+ lib.optionalString (!stdenv.hostPlatform.isStatic) (''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
|
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
|
||||||
rm -f $out/lib/*.a
|
rm -f $out/lib/*.a
|
||||||
|
Loading…
Reference in New Issue
Block a user