2024-09-25 05:45:59 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
|
|
systems.url = "github:nix-systems/default";
|
|
|
|
devenv.url = "github:cachix/devenv";
|
|
|
|
devenv.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
fenix.url = "github:nix-community/fenix";
|
|
|
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixConfig = {
|
|
|
|
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
|
|
|
extra-substituters = "https://devenv.cachix.org";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
|
|
|
|
let
|
|
|
|
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = forEachSystem (system: {
|
|
|
|
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
|
|
|
});
|
|
|
|
|
|
|
|
devShells = forEachSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = devenv.lib.mkShell {
|
|
|
|
inherit inputs pkgs;
|
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
languages.rust = {
|
|
|
|
enable = true;
|
|
|
|
channel = "stable"; # hmmm? bruker du ikke nightly? 😏😏😏
|
|
|
|
};
|
2024-09-26 12:49:23 +02:00
|
|
|
packages = with pkgs; [ openssl sqlite];
|
2024-09-25 05:45:59 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|