~james/core

core/bobbin/default.nix -rw-r--r-- 550 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 16 hours ago
                                                                                
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
33
34
{
  lib,
  rustPlatform,
  tangled,
  ...
}:
rustPlatform.buildRustPackage {
  pname = "bobbin";
  version = "main";

  src = ./.;

  cargoHash = "sha256-apY29WbquD3Eh2yvyRqPPTjm60JZMkty4Vwi1ERZ2+Q=";

  cargoBuildFlags = [
    "--bin"
    "bobbin"
    "--package"
    "bobbin"
  ];

  preBuild = ''
    export BOBBIN_LEXICONS_DIR=${tangled}/lexicons
  '';

  doCheck = false;

  meta = {
    description = "tangled appview";
    homepage = "https://tangled.org/oyster.cafe/bobbin";
    license = lib.licenses.mit;
    mainProgram = "bobbin";
  };
}