2022-04-26 01:19:30 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
2023-07-12 15:22:45 +00:00
|
|
|
, fetchFromGitHub
|
2022-04-26 01:19:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pouf";
|
2023-09-19 08:58:55 +00:00
|
|
|
version = "0.6.3";
|
2022-04-26 01:19:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mothsart";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-09-19 08:58:55 +00:00
|
|
|
hash = "sha256-tW86b9a7u1jyfmHjwjs+5DaUujRZH+VhGQsj0CBj0yk=";
|
2022-04-26 01:19:30 +00:00
|
|
|
};
|
|
|
|
|
2023-09-19 08:58:55 +00:00
|
|
|
cargoHash = "sha256-rVJAaeg27SdM8cTx12rKLIGEYtXUhLHXUYpT78oVNlo=";
|
|
|
|
|
|
|
|
# Cargo.lock is outdated.
|
|
|
|
preConfigure = ''
|
|
|
|
cargo update --offline
|
|
|
|
'';
|
2022-05-01 19:20:43 +00:00
|
|
|
|
|
|
|
postInstall = "make PREFIX=$out copy-data";
|
2022-04-26 01:19:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-08 05:29:45 +00:00
|
|
|
description = "A CLI program for produce fake datas";
|
2022-04-26 01:19:30 +00:00
|
|
|
homepage = "https://github.com/mothsart/pouf";
|
|
|
|
changelog = "https://github.com/mothsart/pouf/releases/tag/${version}";
|
|
|
|
maintainers = with maintainers; [ mothsart ];
|
|
|
|
license = with licenses; [ mit ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "pouf";
|
2022-04-26 01:19:30 +00:00
|
|
|
};
|
|
|
|
}
|