20 lines
493 B
Nix
20 lines
493 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||
|
utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
in
|
||
|
rec {
|
||
|
packages.synmtx = pkgs.rustPlatform.buildRustPackage {
|
||
|
name = "synmtx";
|
||
|
src = ./.;
|
||
|
cargoLock = { lockFile = ./Cargo.lock; };
|
||
|
};
|
||
|
packages.default = packages.synmtx;
|
||
|
});
|
||
|
}
|