Skip to content

Instantly share code, notes, and snippets.

@cideM
Created September 27, 2021 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cideM/6879e63376909320c22812b32aaa945e to your computer and use it in GitHub Desktop.
Save cideM/6879e63376909320c22812b32aaa945e to your computer and use it in GitHub Desktop.
anki
{
description = "zola";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs/staging-next";
inputs.ankisrc.url = "https://github.com/ankitects/anki/releases/download/2.1.35/anki-2.1.35-linux-amd64.tar.bz2";
inputs.ankisrc.flake = false;
outputs = { self, nixpkgs, flake-utils, ankisrc }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs {
inherit system;
overlays = [
(self: super: {
anki = super.anki.overrideAttrs
(old: {
src = ankisrc;
});
})
];
};
in
rec {
devShell = pkgs.mkShell
{
buildInputs = with pkgs; [
anki
];
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment