mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
54 lines
1005 B
Nix
54 lines
1005 B
Nix
{ fetchFromGitHub
|
|
, glib
|
|
, gtk3
|
|
, openssl
|
|
, pkg-config
|
|
, python3
|
|
, rustPlatform
|
|
, lib
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "break-time";
|
|
version = "0.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cdepillabout";
|
|
repo = "break-time";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-q79JXaBwd/oKtJPvK2+72pY2YvaR3of2CMC8cF6wwQ8=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
python3 # needed for Rust xcb package
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
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";
|
|
homepage = "https://github.com/cdepillabout/break-time";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ cdepillabout ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
|