nixos/pkgs/ivabus-dev.nix
Ivan Bushchik 3dc13df65f
Bump ivabus-dev to f3ccd00
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-12-08 16:21:57 +03:00

39 lines
690 B
Nix

{ pkgs ? import <nixpkgs> { }, bundlerEnv, ... }:
let
version = "f3ccd002971613d04486f17f9fcbb1cb03ef7c70";
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/
'';
}