about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorDennis Gosnell <cdep.illabout@gmail.com>2020-07-20 09:30:01 +0900
committerGitHub <noreply@github.com>2020-07-20 09:30:01 +0900
commitc32264ef79ffeb807015b66fd6c5c893ba1c8ee9 (patch)
treeebc20825c73762804c74e5ffa981b2100ab2ccee /pkgs/applications
parent8b66a6f863729a9223f31f20adc340113b4ec14a (diff)
parentf1d3856fa39305b66226fd4e3968c2bf10868826 (diff)
Merge pull request #93476 from cdepillabout/add-break-time
break-time: init at 0.1.1
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/misc/break-time/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/misc/break-time/default.nix b/pkgs/applications/misc/break-time/default.nix
new file mode 100644
index 0000000000000..4bcc4de5157d6
--- /dev/null
+++ b/pkgs/applications/misc/break-time/default.nix
@@ -0,0 +1,45 @@
+{ fetchFromGitHub
+, glib
+, gtk3
+, openssl
+, pkg-config
+, python3
+, rustPlatform
+, stdenv
+, wrapGAppsHook
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "break-time";
+  version = "0.1.1";
+
+  src = fetchFromGitHub {
+    owner = "cdepillabout";
+    repo  = "break-time";
+    rev = "v${version}";
+    sha256 = "18p9gfp0inbnjsc7af38fghyklr7qnl2kkr25isfy9d5m8cpxqc6";
+  };
+
+  cargoSha256 = "0brmgrxhspcpcarm4lvnl95dw2n96r20w736giv18xcg7d5jmgca";
+
+  nativeBuildInputs = [
+    pkg-config
+    python3 # needed for Rust xcb package
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    glib
+    gtk3
+    openssl
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Break timer that forces you to take a break";
+    homepage    = "https://github.com/cdepillabout/break-time";
+    license     = with licenses; [ mit ];
+    maintainers = with maintainers; [ cdepillabout ];
+    platforms   = platforms.linux;
+  };
+}
+