templates/julia/flake.nix

24 lines
600 B
Nix
Raw Permalink Normal View History

2024-03-05 17:19:18 +01:00
{
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 ];
};
}
);
}