mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
feat: override clockify package
This commit is contained in:
parent
d9414ae7ea
commit
2368cb7fe0
@ -5,7 +5,7 @@ appimageTools.wrapType2 rec {
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://desktop.clickup.com/linux";
|
||||
url = "https://web.archive.org/web/20221027054240/https://desktop.clickup.com/linux";
|
||||
sha256 = "sha256-Qkvs01L9qfvZ5E9BnLdw2oWYaL5tYR3faFjlv6pAY2Y=";
|
||||
};
|
||||
|
||||
|
54
overlays/clockify/default.nix
Normal file
54
overlays/clockify/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ stdenv, lib, fetchurl, dpkg, makeWrapper, libXScrnSaver, electron }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clockify";
|
||||
version = "2.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://web.archive.org/web/20211118160803/https://clockify-resources.s3.eu-central-1.amazonaws.com/downloads/Clockify_Setup.deb";
|
||||
sha256 = "sha256-eVZ3OqM1eoWfST7Qu9o8VmLm8ntD+ETf/0aes6RY4Y8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libXScrnSaver
|
||||
];
|
||||
|
||||
libPath = lib.makeLibraryPath buildInputs;
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x ${src} ./
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mv usr $out
|
||||
mv opt $out
|
||||
|
||||
substituteInPlace $out/share/applications/clockify.desktop \
|
||||
--replace "/opt/Clockify" $out/bin
|
||||
|
||||
makeWrapper ${electron}/bin/electron $out/bin/clockify \
|
||||
--add-flags $out/opt/Clockify/resources/app.asar \
|
||||
--prefix LD_LIBRARY_PATH : ${libPath}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Free time tracker and timesheet app that lets you track work hours across projects";
|
||||
homepage = "https://clockify.me";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = platforms.linux;
|
||||
|
||||
};
|
||||
}
|
@ -28,5 +28,6 @@ self: super:
|
||||
kubectl-whoami = super.callPackage ./kubectl-whoami { };
|
||||
|
||||
clickup = super.callPackage ./clickup { };
|
||||
clockify = super.callPackage ./clockify { };
|
||||
tailscale-systray = super.callPackage ./tailscale-systray { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user