File tree Expand file tree Collapse file tree 3 files changed +599
-0
lines changed
Expand file tree Collapse file tree 3 files changed +599
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments