break-time 0.1.0

An app to force you to take breaks regularly while using the computer
Documentation

let
  break-time-overlay = self: super: {
    break-time =
      self.rustPlatform.buildRustPackage rec {
        pname = "break-time";
        version = "0.1.0";

        src = self.nix-gitignore.gitignoreSource [] ./.;

        buildInputs = [
          self.glib
          self.gtk3
          self.openssl
        ];

        nativeBuildInputs = [
          self.pkg-config
          self.python3 # needed for Rust xcb package
          self.wrapGAppsHook
        ];

        cargoSha256 = "1igk4np3i5wh1kvp13sbpk5pqmr8bxfqycgxyizmciqirvwzw6vj";
      };
  };

  nixpkgsSrc = builtins.fetchTarball {
    # nixpkgs master as of 2020-07-17
    url = https://github.com/NixOS/nixpkgs/archive/e6d81a9b89e8dd8761654edf9dc744660a6bef0a.tar.gz;
    sha256 = "0lmw1zy00l89b0x7l5f85bvxdd2w245iqf9smyiyxvl1j03b0zyq";
  };

  nixpkgs = import nixpkgsSrc {
    overlays = [ break-time-overlay ];
  };
in

nixpkgs.break-time