DEVELOPMENT ENVIRONMENT

~liljamo/canwa

ref: 85362b834fe09a345d51b73441f87464b4a6b6a5 canwa/nix/default.nix -rw-r--r-- 421 bytes
85362b83Jonni Liljamo fix(nix): create user in module 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;
    };
  }