Skip to content

Commit 91f3d15

Browse files
unsure: init at 0.4.0-unstable-2025-04-15 (NixOS#399529)
2 parents 5aac695 + 951c787 commit 91f3d15

File tree

3 files changed

+599
-0
lines changed

3 files changed

+599
-0
lines changed

pkgs/by-name/un/unsure/package.nix

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
buildDartApplication,
3+
dart,
4+
fetchFromGitHub,
5+
lib,
6+
runCommand,
7+
testers,
8+
unsure,
9+
writeText,
10+
}:
11+
12+
buildDartApplication rec {
13+
pname = "unsure";
14+
version = "0.4.0-unstable-2025-04-15";
15+
16+
src = fetchFromGitHub {
17+
owner = "filiph";
18+
repo = "unsure";
19+
rev = "123712482b7053974cbef9ffa7ba46c1cdfb765f";
20+
hash = "sha256-rn10vy6l12ToiqO4vGVT4N7WNlj6PY/r+xVzjmYqILw=";
21+
};
22+
23+
pubspecLock = lib.importJSON ./pubspec.lock.json;
24+
25+
doInstallCheck = true;
26+
installCheckPhase = ''
27+
runHook preInstallCheck
28+
29+
[[ "$("$out/bin/unsure" "4~6 * 1~2" | head --lines=2)" == "$(printf '\n\t%s' '5~11')" ]]
30+
31+
runHook postInstallCheck
32+
'';
33+
34+
passthru.updateScript = ./update.sh;
35+
36+
meta = {
37+
changelog = "https://github.com/filiph/unsure/blob/${src.rev}/CHANGELOG.md";
38+
description = "Calculate with numbers you’re not sure about";
39+
downloadPage = "https://github.com/filiph/unsure";
40+
homepage = "https://filiph.github.io/unsure";
41+
license = lib.licenses.mit;
42+
mainProgram = "unsure";
43+
maintainers = [
44+
lib.maintainers.l0b0
45+
lib.maintainers.rksm
46+
];
47+
};
48+
}

0 commit comments

Comments
 (0)