feat(rust): initialised cargo

This commit is contained in:
Artur Manuel 2024-08-06 23:45:54 +01:00
commit 900a9b8e42
Failed to generate hash of commit
9 changed files with 121 additions and 0 deletions

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
description = "ralsay in rust";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forEachSystems = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in
{
packages = forEachSystems (system: {
default = pkgsForEach.${system}.callPackage ./nix/package.nix { };
});
devShells = forEachSystems (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix { };
});
};
}