nixos/pkgs/slides-ivabus-dev.nix
Ivan Bushchik 0375a858ec
Host slides.ivabus.dev using Nix
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-12-20 06:48:33 +03:00

21 lines
473 B
Nix

{ pkgs ? import <nixpkgs> { }, ... }:
let
version = "107f8e0d7e02449bc47bbc6fb03f7d1ce2fae60b";
repo = builtins.fetchGit {
url = "https://github.com/ivabus/slides.ivabus.dev";
rev = version;
};
in pkgs.stdenv.mkDerivation {
inherit version;
name = "slides-ivabus-dev";
src = repo;
buildInputs = [ ];
nativeBuildInputs = with pkgs; [ rsync ];
installPhase = ''
mkdir -p $out
rsync -a . $out/ --exclude README.md --exclude LICENSE
'';
}