feat(rust): initialised cargo
This commit is contained in:
parent
2df4bdc9ed
commit
900a9b8e42
9 changed files with 121 additions and 0 deletions
23
flake.nix
Normal file
23
flake.nix
Normal 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 { };
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue