mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-30 22:57:59 +00:00
project: use ruby-nix
This commit is contained in:
parent
4650f41d1b
commit
100cb299cc
10
flake.nix
10
flake.nix
@ -4,12 +4,18 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
ruby-nix.url = "github:sagittaros/ruby-nix";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, ... }:
|
||||
let systems = inputs.flake-utils.lib.defaultSystems;
|
||||
in inputs.flake-utils.lib.eachSystem systems (system: {
|
||||
devShells.default =
|
||||
import ./shell.nix { pkgs = import nixpkgs { inherit system; }; };
|
||||
devShells.default = let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
import ./shell.nix {
|
||||
inherit pkgs;
|
||||
ruby-nix = inputs.ruby-nix.lib pkgs;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
14
shell.nix
14
shell.nix
@ -1,18 +1,20 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
{ pkgs ? import <nixpkgs> { }, ruby-nix }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
let
|
||||
gems = bundlerEnv {
|
||||
localGems = ruby-nix {
|
||||
name = "hugo-website-gems";
|
||||
gemdir = ./.;
|
||||
gemset = ./gemset.nix;
|
||||
};
|
||||
in
|
||||
mkShell {
|
||||
packages = [
|
||||
gems
|
||||
gems.wrappedRuby
|
||||
buildInputs = [
|
||||
localGems.env
|
||||
localGems.ruby
|
||||
];
|
||||
|
||||
packages = [
|
||||
git
|
||||
go
|
||||
hugo
|
||||
|
Loading…
Reference in New Issue
Block a user