mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
35 lines
804 B
Nix
35 lines
804 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pouf";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mothsart";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-tW86b9a7u1jyfmHjwjs+5DaUujRZH+VhGQsj0CBj0yk=";
|
|
};
|
|
|
|
cargoHash = "sha256-rVJAaeg27SdM8cTx12rKLIGEYtXUhLHXUYpT78oVNlo=";
|
|
|
|
# Cargo.lock is outdated.
|
|
preConfigure = ''
|
|
cargo update --offline
|
|
'';
|
|
|
|
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 ];
|
|
mainProgram = "pouf";
|
|
};
|
|
}
|