fox32asm/flake.nix

24 lines
557 B
Nix
Raw Normal View History

2024-02-01 19:55:30 +01:00
{
description = "fox32asm";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = import nixpkgs { system = sys; };
in rec {
packages.default = pkgs.rustPlatform.buildRustPackage {
name = "fox32asm";
src = ./. ;
cargoLock = { lockFile = ./Cargo.lock; };
NIX_SEMVER = version;
NIX_GIT_SHA_SHORT = if self ? rev then self.rev else "dirty";
};
}
);
}