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