![Bjørn Forsman](/assets/img/avatar_default.png)
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
25 lines
778 B
Nix
25 lines
778 B
Nix
args @ {texLive, unzip, ...}: with args;
|
|
rec {
|
|
version = "1.5.1";
|
|
name = "moderncv-${version}";
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/moderncv/trunk/${version}/+download/moderncv-${version}.zip";
|
|
sha256 = "0k26s0z8hmw3h09vnpndim7gigwh8q6n9nbbihb5qbrw5qg2yqck";
|
|
};
|
|
|
|
buildInputs = [texLive unzip];
|
|
phaseNames = ["doCopy"];
|
|
doCopy = fullDepEntry (''
|
|
mkdir -p $out/texmf-dist/tex/latex/moderncv $out/texmf-dist/doc $out/share
|
|
mv *.cls *.sty $out/texmf-dist/tex/latex/moderncv/
|
|
mv examples $out/texmf-dist/doc/moderncv
|
|
ln -s $out/texmf* $out/share/
|
|
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
|
|
|
|
meta = {
|
|
description = "The moderncv class for TeXLive";
|
|
# Actually, arch-independent..
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|