DEVELOPMENT ENVIRONMENT

~liljamo/canwa

ref: 485944c47994e562fb5ac3ce2a1b78d15f211026 canwa/nix/default.nix -rw-r--r-- 502 bytes
485944c4Jonni Liljamo fix(nix): pkg-config and openssl in package inputs 10 days 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
{
  lib,
  rustPlatform,
  # nativeBuildInputs
  mold,
  pkg-config,
  # libs
  openssl,
}: let
  manifest = (lib.importTOML ../Cargo.toml).package;
in
  rustPlatform.buildRustPackage {
    pname = manifest.name;
    version = manifest.version;

    cargoLock.lockFile = ../Cargo.lock;

    src = ../.;

    nativeBuildInputs = [
      mold
      pkg-config
    ];

    buildInputs = [openssl];

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