mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
ianny: init at v1.0.0beta.1
This commit is contained in:
parent
fd61dfe9c1
commit
b87f47a25c
43
pkgs/by-name/ia/ianny/package.nix
Normal file
43
pkgs/by-name/ia/ianny/package.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, dbus
|
||||||
|
, pkg-config
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "ianny";
|
||||||
|
version = "1.0.0beta.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zefr0x";
|
||||||
|
repo = "ianny";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-Bnr+wtusvTM690IISBs0wKj0ChBoIrMHyVZ8wdGgK08=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-/8C+hDq/z+h1uxO9prLbKHgyfMGrMODAs5/yUrutaAM=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
buildInputs = [ dbus.dev ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/main.rs \
|
||||||
|
--replace-fail '/usr/share/locale' $out/share/locale
|
||||||
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
mkdir -p $out/etc/xdg/autostart
|
||||||
|
mkdir -p $out/usr/share/local
|
||||||
|
cp io.github.zefr0x.ianny.desktop $out/etc/xdg/autostart/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Desktop utility that helps preventing repetitive strain injuries by keeping track of usage patterns and periodically informing the user to take breaks.";
|
||||||
|
homepage = "https://github.com/zefr0x/ianny";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
mainProgram = "ianny";
|
||||||
|
maintainers = with maintainers; [ max-amb ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue