clin-rs 0.8.13

Encrypted terminal note-taking app inspired by Obsidian
{
  description = "Encrypted terminal note-taking app inspired by Obsidian";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, utils }:
    utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };
      in
      {
        packages.default = pkgs.rustPlatform.buildRustPackage {
          pname = "clin";
          version = "0.8.13"; # This will be updated by the release workflow

          src = ./.;

          cargoLock = {
            lockFile = ./Cargo.lock;
          };

          nativeBuildInputs = with pkgs; [
            pkg-config
          ];

          buildInputs = with pkgs; [
            openssl
            zlib
            libgit2
            xorg.libX11
            xorg.libxcb
          ];

          meta = with pkgs.lib; {
            description = "Encrypted terminal note-taking app inspired by Obsidian";
            homepage = "https://github.com/reekta92/clin-rs";
            license = licenses.gpl3;
            maintainers = [ ];
          };
        };

        devShells.default = pkgs.mkShell {
          nativeBuildInputs = with pkgs; [
            pkg-config
          ];
          buildInputs = with pkgs; [
            cargo
            rustc
            openssl
            zlib
            libgit2
            xorg.libX11
            xorg.libxcb
          ];
        };
      }
    );
}