Add asciinema support

This commit is contained in:
Jade Lovelace 2023-04-02 18:21:49 -07:00
parent 981b8ad067
commit 866fe408e4
9 changed files with 2930 additions and 12 deletions

View file

@ -0,0 +1,22 @@
let
pkgs = import <nixpkgs> { };
wait = n: builtins.readFile (pkgs.runCommand "delay" { } ''
sleep ${toString n}
echo $((${toString n} * 5)) > $out
'');
in
pkgs.stdenv.mkDerivation {
name = "blah";
dontUnpack = true;
doInstall = false;
dontConfigure = true;
buildPhase = ''
echo ${wait 1}
echo ${wait 2}
echo ${wait 3}
touch $out
'';
doBuild = true;
}