DEVELOPMENT ENVIRONMENT

~liljamo/canwa

ref: f07712ffc5f21bd3755ef74dfe5d5dd467e620aa canwa/nix/default.nix -rw-r--r-- 421 bytes
f07712ffJonni Liljamo feat: nix updates, package and module 15 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
{
  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;
    };
  }