DEVELOPMENT ENVIRONMENT

~liljamo/canwa

ref: f4acfed44fdf65b21695766b67d03f1700f5ecb1 canwa/nix/default.nix -rw-r--r-- 421 bytes
f4acfed4Jonni Liljamo chore: disable unused features, regen license.html a month 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
{
  lib,
  rustPlatform,
  # nativeBuildInputs
  mold,
}: let
  manifest = (lib.importTOML ../Cargo.toml).package;
in
  rustPlatform.buildRustPackage {
    pname = manifest.name;
    version = manifest.version;

    cargoLock.lockFile = ../Cargo.lock;

    src = ../.;

    nativeBuildInputs = [
      mold
    ];

    meta = {
      description = manifest.description;
      license = lib.licenses.agpl3Plus;
    };
  }