This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
static/flake.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
devenv.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};
gems = pkgs.bundlerEnv {
name = "static";
gemdir = ./.;
};
in
{
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
packages = [ gems gems.wrappedRuby ];
}
];
};
});
};
}