The shell.nix file is used for both flake and non-flake invocations. The lock file is also set at a version where the project works. Note the none-flake method will follow the version of the system and isn't guaranteed to work on older installations if they haven't been updated in a while. Added Documentation for using Nix package manager for development ./Documentation/LinuxDevelopmentSetupUsingNix.md Signed-off-by: Ayman Jundi <ajundi@gmail.com>
16 lines
476 B
Nix
16 lines
476 B
Nix
{
|
|
description =
|
|
"Generic flake to run shell.nix with a locked nixos pkgs version. If you have
|
|
flakes enabled just run 'nix develop' in the same folder as flake.nix";
|
|
inputs = {
|
|
#// use your preferred nixpkgs version
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
in {
|
|
devShells.x86_64-linux.default = import ./shell.nix {inherit pkgs;};
|
|
};
|
|
} |