Victor Engmark 951c787a49
unsure: init at 0.4.0
Co-authored-by: emaryn <197520219+emaryn@users.noreply.github.com>
2025-04-19 16:40:29 +02:00

49 lines
1.1 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
buildDartApplication,
dart,
fetchFromGitHub,
lib,
runCommand,
testers,
unsure,
writeText,
}:
buildDartApplication rec {
pname = "unsure";
version = "0.4.0-unstable-2025-04-15";
src = fetchFromGitHub {
owner = "filiph";
repo = "unsure";
rev = "123712482b7053974cbef9ffa7ba46c1cdfb765f";
hash = "sha256-rn10vy6l12ToiqO4vGVT4N7WNlj6PY/r+xVzjmYqILw=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
[[ "$("$out/bin/unsure" "4~6 * 1~2" | head --lines=2)" == "$(printf '\n\t%s' '5~11')" ]]
runHook postInstallCheck
'';
passthru.updateScript = ./update.sh;
meta = {
changelog = "https://github.com/filiph/unsure/blob/${src.rev}/CHANGELOG.md";
description = "Calculate with numbers youre not sure about";
downloadPage = "https://github.com/filiph/unsure";
homepage = "https://filiph.github.io/unsure";
license = lib.licenses.mit;
mainProgram = "unsure";
maintainers = [
lib.maintainers.l0b0
lib.maintainers.rksm
];
};
}