nix: remove deprecated flake attributes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bruno BELANYI 2022-06-20 14:42:42 +02:00
parent fb021ad3b3
commit 26c48b3561
1 changed files with 46 additions and 41 deletions

View File

@ -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
''; '';
}; };
} };
); }
);
} }