-
-
Save kalbasit/f04f2734767c8be65bc29840dd89411e to your computer and use it in GitHub Desktop.
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
let | |
hostPkgs = import <nixpkgs> {}; | |
# Look here for information about how to generate `nixpkgs-version.json`. | |
# → https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs | |
pinnedVersion = hostPkgs.lib.importJSON ./.nixpkgs-version.json; | |
pinnedPkgs = import (hostPkgs.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
inherit (pinnedVersion) rev sha256; | |
}) {}; | |
texlive.moderncv = pinnedPkgs.callPackage ./moderncv {}; | |
in | |
# This allows overriding nixpkgs by passing `--arg nixpkgs ...` | |
{ nixpkgs ? pinnedPkgs }: | |
with nixpkgs; | |
mkShell { | |
buildInputs = [ | |
git | |
gnumake | |
tetex | |
(texlive.combine { | |
inherit (texlive) scheme-medium moderncv; | |
}) | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment