break-time: don't vendor Cargo.lock, use patch for openssl3

This commit is contained in:
TomaSajt
2025-08-15 15:32:48 +02:00
parent a9b49b184d
commit 90233a90a1
3 changed files with 1408 additions and 1629 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+6 -8
View File
@@ -21,9 +21,12 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-q79JXaBwd/oKtJPvK2+72pY2YvaR3of2CMC8cF6wwQ8=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
cargoPatches = [
# update Cargo.lock to work with openssl 3
./openssl3-support.patch
];
cargoHash = "sha256-HthrPtIWvYLAQDpW12r250OWP7CF4SORlqFbxIq/Dzo=";
nativeBuildInputs = [
pkg-config
@@ -37,11 +40,6 @@ rustPlatform.buildRustPackage rec {
openssl
];
# update Cargo.lock to work with openssl
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "Break timer that forces you to take a break";
mainProgram = "break-time";