-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
32 lines (26 loc) · 821 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, crystal, llvmPackages, openssl, makeWrapper }:
crystal.buildCrystalPackage {
pname = "trackmap-cli";
version = "0.1.0";
src = ./.;
format = "crystal";
shardsFile = ./shards.nix;
nativeBuildInputs = [ llvmPackages.llvm openssl makeWrapper ];
doCheck = false;
doInstallCheck = false;
crystalBinaries.trackmap = {
src = "src/trackmap-cli.cr";
options = [ "--release" "--no-debug" "--progress" "-Dpreview_mt" ];
};
postInstall = ''
wrapProgram "$out/bin/trackmap" --prefix PATH : '${
lib.makeBinPath [llvmPackages.llvm.dev]
}'
'';
meta = with lib; {
description = "A tool for building maps for garmin gps devices";
homepage = "https://github.com/repomaa/trackmap-cli";
license = licenses.mit;
maintainers = "Joakim Repomaa <[email protected]>";
};
}