fox32asm/flake.nix

27 lines
662 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 {
2024-02-03 11:50:40 +01:00
packages.fox32asm = pkgs.rustPlatform.buildRustPackage rec {
pname = "fox32asm";
version = "0.3.0";
2024-02-01 19:55:30 +01:00
src = ./. ;
cargoLock = { lockFile = ./Cargo.lock; };
NIX_SEMVER = version;
2024-02-03 11:57:07 +01:00
NIX_GIT_SHA_SHORT = if self ? rev then builtins.substring 0 7 self.rev else "dirty";
2024-02-01 19:55:30 +01:00
};
2024-02-03 11:50:40 +01:00
packages.default = packages.fox32asm;
2024-02-01 19:55:30 +01:00
}
);
}