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-14 22:09:07 +01:00
|
|
|
NIX_GIT_SHA_SHORT = self.shortRev or self.dirtyShortRev;
|
2024-02-01 19:55:30 +01:00
|
|
|
};
|
2024-02-03 11:50:40 +01:00
|
|
|
packages.default = packages.fox32asm;
|
2024-02-03 12:02:29 +01:00
|
|
|
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
|
|
packages = [ pkgs.cargo ];
|
|
|
|
};
|
2024-02-01 19:55:30 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|