2022-09-22 12:36:57 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, jq }:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "genact";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.1.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svenstaro";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-Mw6mPOxiWnYu2QgqL4VccwwJhdxZ7zLJyX/oJWfGUhw=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
cargoSha256 = "sha256-ygQklcRjdffGl0s77MwKsyHVJWqWJZHq4SU38cSMVug=";
|
|
|
|
|
|
|
|
depsExtraArgs = {
|
|
|
|
nativeBuildInputs = [ jq ];
|
|
|
|
postBuild = ''
|
|
|
|
pushd $name/humansize
|
|
|
|
|
|
|
|
[ -d feature-tests ] && rm -r feature-tests
|
|
|
|
|
|
|
|
jq '.files |= with_entries(select(.key | startswith("feature-tests") | not))' \
|
|
|
|
-c .cargo-checksum.json > .cargo-checksum.json.new
|
|
|
|
mv .cargo-checksum.json{.new,}
|
|
|
|
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A nonsense activity generator";
|
|
|
|
homepage = "https://github.com/svenstaro/genact";
|
2022-09-11 15:47:08 +00:00
|
|
|
changelog = "https://github.com/svenstaro/genact/blob/v${version}/CHANGELOG.md";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|