1{
2 mkDerivation,
3 haskellPackages,
4 fetchurl,
5 lib,
6}:
7
8mkDerivation rec {
9 pname = "nota";
10 version = "1.0";
11
12 # Can't use fetchFromGitLab since codes.kary.us doesn't support https
13 src = fetchurl {
14 url = "http://codes.kary.us/nota/nota/-/archive/V${version}/nota-V${version}.tar.bz2";
15 sha256 = "0bbs6bm9p852hvqadmqs428ir7m65h2prwyma238iirv42pk04v8";
16 };
17
18 postUnpack = ''
19 export sourceRoot=$sourceRoot/source
20 '';
21
22 isLibrary = false;
23 isExecutable = true;
24
25 libraryHaskellDepends = with haskellPackages; [
26 base
27 bytestring
28 array
29 split
30 scientific
31 parsec
32 ansi-terminal
33 regex-compat
34 containers
35 terminal-size
36 numbers
37 text
38 time
39 ];
40
41 description = "Most beautiful command line calculator";
42 homepage = "https://kary.us/nota";
43 license = lib.licenses.mpl20;
44 maintainers = [ ];
45 mainProgram = "nota";
46}