Created
September 27, 2021 11:54
-
-
Save cideM/6879e63376909320c22812b32aaa945e to your computer and use it in GitHub Desktop.
anki
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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