templates/julia/flake.nix

24 lines
600 B
Nix

{
description = "A bare julia flake";
inputs = {
# julia language support only in unstable so far
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (sys:
let pkgs = nixpkgs.legacyPackages.${sys};
overrides = {};
julia = (pkgs.julia_19.withPackages.override overrides) [
"Plots"
];
in {
devShells.default = pkgs.mkShell {
packages = [ julia ];
};
}
);
}