2024-11-07 20:18:49 +01:00
|
|
|
{
|
|
|
|
description = "Flake for servicepoint-simulator";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
inputs@{ self, nixpkgs }:
|
2024-11-07 20:34:52 +01:00
|
|
|
let
|
|
|
|
servicepoint-simulator = nixpkgs.legacyPackages.x86_64-linux.rustPlatform.buildRustPackage rec {
|
2024-11-07 20:18:49 +01:00
|
|
|
pname = "servicepoint-simulator";
|
|
|
|
version = "0.0.1";
|
|
|
|
|
2024-11-07 20:34:52 +01:00
|
|
|
src = ./.; # TODO: src, Cargo.toml etc
|
2024-11-07 20:18:49 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
|
|
|
];
|
2024-11-07 20:34:52 +01:00
|
|
|
nativeBuildInputs = with nixpkgs.legacyPackages.x86_64-linux; [ pkg-config ];
|
|
|
|
#cargoSha256 = "sha256-0hfmV4mbr3l86m0X7EMYTOu/b+BjueVEbbyQz0KgOFY=";
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
2024-11-07 20:18:49 +01:00
|
|
|
|
|
|
|
meta = with nixpkgs.stdenv.lib; {
|
|
|
|
homepage = "";
|
|
|
|
description = "";
|
|
|
|
#license = licenses.gplv3;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2024-11-07 20:34:52 +01:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
packages.x86_64-linux.default = servicepoint-simulator;
|
|
|
|
|
|
|
|
legacyPackages = packages;
|
2024-11-07 20:18:49 +01:00
|
|
|
|
|
|
|
devShells.x86_64-linux.default = import ./shell.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
|
|
|
|
|
|
|
|
formatter = {
|
|
|
|
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
|
|
|
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|