mirror of
https://github.com/NixOS/templates.git
synced 2026-01-13 17:58:39 +01:00
33 lines
783 B
Nix
33 lines
783 B
Nix
{
|
|
# Based on https://github.com/bobvanderlinden/templates/blob/master/ruby/flake.nix
|
|
# Useage: see README.md
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
r10k = pkgs.bundlerEnv {
|
|
name = "gemset";
|
|
gemfile = ./Gemfile;
|
|
lockfile = ./Gemfile.lock;
|
|
gemset = ./gemset.nix;
|
|
};
|
|
in {
|
|
|
|
defaultPackage = r10k;
|
|
|
|
# used by nix shell and nix develop
|
|
devShell = with pkgs;
|
|
mkShell {
|
|
buildInputs = [
|
|
ruby
|
|
bundix
|
|
];
|
|
};
|
|
});
|
|
}
|