summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 8106847..346c559 100644
--- a/flake.nix
+++ b/flake.nix
@@ -20,7 +20,7 @@
toolchain = fenix.packages.x86_64-linux.minimal.toolchain;
in {
devShells.x86_64-linux.default = pkgs.mkShell {
- buildInputs = [toolchain];
+ buildInputs = [toolchain pkgs.xvfb-run];
shellHook = ''
export RUSTUP_TOOLCHAIN=${toolchain}
'';
@@ -30,7 +30,12 @@
cargo = toolchain;
rustc = toolchain;
}).buildPackage {
+ nativeBuildInputs = [pkgs.makeWrapper];
src = ./.;
+ postInstall = ''
+ wrapProgram $out/bin/anki-cli \
+ --prefix PATH : ${pkgs.xvfb-run}/bin
+ '';
};
};
}