nixos/pkgs/ivabus-dev.nix
Ivan Bushchik 457f8f7fc9
Bump ivabus-dev to 8174cdb
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-11-30 16:17:33 +03:00

40 lines
690 B
Nix

{ pkgs ? import <nixpkgs> { }, bundlerEnv, ... }:
let
version = "8174cdb01f5753ed91f19975aca4ab5a9ea73408";
repo = builtins.fetchGit {
url = "https://github.com/ivabus/website";
rev = version;
};
gems = bundlerEnv {
name = "ivabus-dev";
ruby = pkgs.ruby;
gemdir = "${repo}/.";
};
in pkgs.stdenv.mkDerivation {
inherit version;
name = "ivabus-dev";
src = repo;
buildInputs = with pkgs; [
gems
# nokogiri dependencies
zlib
libiconv
libxml2
libxslt
# jekyll wants a JS runtime
nodejs-slim
];
buildPhase = ''
bundle exec jekyll build
'';
installPhase = ''
mkdir -p $out
cp -r _site/* $out/
'';
}