nixpkgs/pkgs/servers/microbin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
699 B
Nix
Raw Normal View History

2022-09-30 18:00:07 +02:00
{ lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "microbin";
version = "1.2.1";
2022-09-30 18:00:07 +02:00
# The GitHub source is outdated
2022-09-30 18:00:07 +02:00
src = fetchCrate {
inherit pname version;
hash = "sha256-OLg0ejs9nanMNlY0lcnJ/RoRwefrXEaaROwx5aPx4u8=";
2022-09-30 18:00:07 +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";
changelog = "https://github.com/szabodanika/microbin/releases/tag/v${version}";
2022-09-30 18:00:07 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [ dit7ya figsoda ];
2022-09-30 18:00:07 +02:00
};
}