add nix flake

This commit is contained in:
Fabien Freling 2023-02-19 23:56:21 +01:00
parent 70951c34c6
commit c39c8c0c67
3 changed files with 46 additions and 0 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
description = "Doggo flake";
outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
# packages.x86_64-linux.hello = pkgs.hello;
# packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
# defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello;
devShell.x86_64-linux = with pkgs;
mkShell {
buildInputs = [
just
cargo
rustup
];
};
};
}