~ruther/sequence-detector

ref: 6a12b868ad4164f42c8f5cc17c98e3597a4d75ea sequence-detector/default.nix -rw-r--r-- 569 bytes
6a12b868 — Rutherther chore: add flake environment 1 year, 6 months 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
35
36
{ lib
, naersk
, stdenv
, clangStdenv
, hostPlatform
, targetPlatform
, pkg-config
, rustfmt
, cargo
, rustc
}:

let
  cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml));
in
naersk.lib."${targetPlatform.system}".buildPackage rec {
  src = ./.;
  buildInputs = [
    rustfmt
    pkg-config
    cargo
    rustc
  ];

  checkInputs = [ cargo rustc ];

  doCheck = true;
  copyLibs = true;

  meta = {
    description = cargoToml.package.description;
    homepage = cargoToml.package.homepage;
    license = [ lib.licenses.mit ];
    maintainers = [];
  };
}
Do not follow this link