mirror of
https://github.com/hmemcpy/milewski-ctfp-pdf.git
synced 2024-10-05 18:17:16 +03:00
parent
32743b2738
commit
b5e4a59d17
4
.github/workflows/nix-flake-check.yaml
vendored
4
.github/workflows/nix-flake-check.yaml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install the Nix package manager
|
||||
uses: cachix/install-nix-action@v18
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- id: set-matrix
|
||||
run: |
|
||||
@ -55,7 +55,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Nix flake check
|
||||
run: nix flake check
|
||||
|
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
@ -18,13 +18,12 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install the Nix package manager
|
||||
uses: cachix/install-nix-action@v18
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- id: set-matrix
|
||||
run: |
|
||||
echo "matrix=$(
|
||||
nix eval --json --impure \
|
||||
--expr 'builtins.filter (x: (null == builtins.match "(.*)-nts" x)) (builtins.attrNames (import ./.).packages.x86_64-linux)'
|
||||
nix eval --json .#packages.x86_64-linux --apply builtins.attrNames
|
||||
)" >> $GITHUB_OUTPUT
|
||||
|
||||
build:
|
||||
@ -40,7 +39,7 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v18
|
||||
uses: cachix/install-nix-action@v20
|
||||
|
||||
- name: Build ${{ matrix.packages }}.pdf
|
||||
run: |
|
||||
|
18
flake.lock
18
flake.lock
@ -5,11 +5,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1675295133,
|
||||
"narHash": "sha256-dU8fuLL98WFXG0VnRgM00bqKX6CEPBLybhiIDIgO45o=",
|
||||
"lastModified": 1680392223,
|
||||
"narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "bf53492df08f3178ce85e0c9df8ed8d03c030c9f",
|
||||
"rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -19,11 +19,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1675309347,
|
||||
"narHash": "sha256-D3CQ6HRDT2m3XJlrzb5jKq4vNFR5xFTEFKC7iSjlFpM=",
|
||||
"lastModified": 1680942619,
|
||||
"narHash": "sha256-kpCW1IegAZfEjCVJW7IPN/hEtRL/9dxaFFYiHS5qVAk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "006c3bd4dd2f5d1d2094047f307cbf9e2b73d9c5",
|
||||
"rev": "6f95dd4fd050daf017cae2dfeb1cea1ec0e4c1a1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -36,11 +36,11 @@
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"lastModified": 1675183161,
|
||||
"narHash": "sha256-Zq8sNgAxDckpn7tJo7V1afRSk2eoVbu3OjI1QklGLNg=",
|
||||
"lastModified": 1680213900,
|
||||
"narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e",
|
||||
"rev": "e3652e0735fbec227f342712f180f4f21f0594f2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
10
flake.nix
10
flake.nix
@ -143,17 +143,25 @@
|
||||
src = "${self}/src";
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
substituteInPlace "version.tex" --replace "dev" "${version}"
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
latexmk -file-line-error -shell-escape -logfilewarninglist \
|
||||
-interaction=nonstopmode -halt-on-error -norc \
|
||||
-jobname=ctfp -pdflatex="xelatex %O %S" -pdfxe \
|
||||
"$basename.tex"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = "install -m 0644 -vD ctfp.pdf \"$out/$fullname.pdf\"";
|
||||
installPhase = "install -m 0644 -vD ctfp.pdf \"$out/${fullname}.pdf\"";
|
||||
|
||||
passthru.packageName = fullname;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user