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