nix: remove deprecated flake attributes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fb021ad3b3
commit
26c48b3561
87
flake.nix
87
flake.nix
|
@ -7,49 +7,54 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, futils } @ inputs:
|
outputs = { self, nixpkgs, futils } @ inputs:
|
||||||
futils.lib.eachDefaultSystem (system:
|
futils.lib.eachDefaultSystem
|
||||||
let
|
(system:
|
||||||
inherit (nixpkgs) lib;
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
inherit (nixpkgs) lib;
|
||||||
buildInputs = with pkgs; [
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
gnumake
|
buildInputs = with pkgs; [
|
||||||
(texlive.combine {
|
gnumake
|
||||||
inherit (texlive)
|
(texlive.combine {
|
||||||
scheme-small
|
inherit (texlive)
|
||||||
# Build script
|
scheme-small
|
||||||
latexmk
|
# Build script
|
||||||
# Extra packages needed
|
latexmk
|
||||||
clearsans
|
# Extra packages needed
|
||||||
fontaxes
|
clearsans
|
||||||
textpos
|
fontaxes
|
||||||
ifmtarg
|
textpos
|
||||||
marvosym
|
ifmtarg
|
||||||
;
|
marvosym
|
||||||
})
|
;
|
||||||
];
|
})
|
||||||
in
|
];
|
||||||
{
|
in
|
||||||
devShell = pkgs.mkShell {
|
{
|
||||||
name = "cv";
|
devShells = {
|
||||||
inherit buildInputs;
|
default = pkgs.mkShell {
|
||||||
};
|
name = "cv";
|
||||||
|
inherit buildInputs;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
defaultPackage = pkgs.stdenvNoCC.mkDerivation {
|
packages = {
|
||||||
pname = "cv";
|
default = pkgs.stdenvNoCC.mkDerivation {
|
||||||
version = self.rev or "dirty";
|
pname = "cv";
|
||||||
src = ./.;
|
version = self.rev or "dirty";
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make
|
make
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm644 en.pdf $out/share/en.pdf
|
install -Dm644 en.pdf $out/share/en.pdf
|
||||||
install -Dm644 fr.pdf $out/share/fr.pdf
|
install -Dm644 fr.pdf $out/share/fr.pdf
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
);
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue