depot/third_party/nixpkgs/pkgs/servers/microbin/default.nix
Default email eaf6957cd3 Project import generated by Copybara.
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
2023-03-27 12:17:25 -07:00

25 lines
699 B
Nix

{ lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "microbin";
version = "1.2.1";
# The GitHub source is outdated
src = fetchCrate {
inherit pname version;
hash = "sha256-OLg0ejs9nanMNlY0lcnJ/RoRwefrXEaaROwx5aPx4u8=";
};
cargoHash = "sha256-XdHP0XruqtyLyGbLHielnmTAc3ZgeIyyZnknO+5k4Xo=";
meta = with lib; {
description = "A tiny, self-contained, configurable paste bin and URL shortener written in Rust";
homepage = "https://github.com/szabodanika/microbin";
changelog = "https://github.com/szabodanika/microbin/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya figsoda ];
};
}