BBPDFO4LTQQRVNJTKEUFIDVZI5CZHWDPOAX6GYKPJYKFNU7CKGJQC
checks = eachSystem (pkgs: {
localRepoCheck =
pkgs.runCommand "localRepoCheck"
{
nativeBuildInputs = [
pkgs.pijul
pkgs.nix
];
}
''
export HOME=$(mktemp -d)
pijul identity new --no-link --no-prompt --display-name 'Test User' --email 'test@example.com'
pijul init repo
cd repo
echo "it works" > foo
pijul add foo
#pijul record --message 'Add foo'
output=$(
nix \
--option plugin-files ${self.packages.${pkgs.system}.nix-plugin-pijul}/lib/nix/plugins/pijul.so \
--extra-experimental-features 'nix-command flakes' \
eval --impure --raw --expr "builtins.readFile ((builtins.fetchTree \"pijul+file://$PWD\") + \"/foo\")"
)
echo $output
[[ "$output" = "it works" ]]
mkdir $out
'';
});