forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{
|
|
lib, stdenv,
|
|
fetchurl,
|
|
appimageTools,
|
|
libsecret
|
|
}:
|
|
|
|
let
|
|
version = "3.4.1";
|
|
pname = "timeular";
|
|
name = "${pname}-${version}";
|
|
src = fetchurl {
|
|
url = "https://s3.amazonaws.com/timeular-desktop-packages/linux/production/Timeular-${version}.AppImage";
|
|
sha256 = "1s5jjdl1nzq9yd582lqs904yl10mp0s25897zmifmcbw1vz38bar";
|
|
};
|
|
appimageContents = appimageTools.extractType2 {
|
|
inherit name src;
|
|
};
|
|
in appimageTools.wrapType2 rec {
|
|
inherit name src;
|
|
|
|
extraPkgs = pkgs: with pkgs; [
|
|
libsecret
|
|
];
|
|
|
|
extraInstallCommands = ''
|
|
mv $out/bin/{${name},${pname}}
|
|
install -m 444 -D ${appimageContents}/timeular.desktop $out/share/applications/timeular.desktop
|
|
install -m 444 -D ${appimageContents}/timeular.png $out/share/icons/hicolor/512x512/apps/timeular.png
|
|
substituteInPlace $out/share/applications/timeular.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Timetracking by flipping 8-sided dice";
|
|
longDescription = ''
|
|
The Timeular Tracker is an 8-sided dice that sits on your desk.
|
|
Assign an activity to each side and flip to start tracking your time.
|
|
The desktop app tell you where every minute of your day is spent.
|
|
'';
|
|
homepage = https://timeular.com;
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ ktor ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|