Skip to content

Commit

Permalink
update nixpkgs to latest (23.05)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bariteau committed Dec 12, 2022
1 parent bc59e55 commit ecaca9e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
let
pkgs = nixpkgs.legacyPackages.${system};

rubyWithGems = pkgs.ruby_3_1.withPackages (ps: with ps; [ slop solargraph rspec rake ]);
in
{
devPackages = [
pkgs.rubyPackages_3_1.solargraph
pkgs.rubyPackages_3_1.rspec
pkgs.rubyPackages_3_1.rake
];

rubyWithGems = pkgs.ruby_3_1.withPackages (ps: with ps; [ slop ]);
in {
packages = flake-utils.lib.flattenTree {
default = pkgs.stdenv.mkDerivation {
name = "terramena";
src = self;
buildInputs = with pkgs; [ rubyWithGems ];
buildInputs = [ rubyWithGems ];

installPhase = ''
mkdir -p $out/lib $out/bin $out/share
Expand All @@ -26,10 +31,7 @@
};
};

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
rubyWithGems
];
};
devShells.default =
pkgs.mkShell { buildInputs = [ rubyWithGems ] ++ devPackages; };
});
}

0 comments on commit ecaca9e

Please sign in to comment.