hmhm
Some checks failed
build-rpm / rpm (push) Failing after 12s

This commit is contained in:
Danilo Reyes
2026-02-19 10:41:25 -06:00
parent 181acb0ecb
commit 506fdd5d96
2 changed files with 19 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build RPM - name: Build RPM
run: nix develop .#rpm --command ./scripts/build-rpm.sh run: nix run .#build-rpm
- name: Upload RPM artifact - name: Upload RPM artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View File

@@ -25,11 +25,25 @@
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.ffmpeg ]} --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.ffmpeg ]}
''; '';
}; };
build-rpm = pkgs.writeShellApplication {
name = "build-rpm";
runtimeInputs = [
pkgs.git
pkgs.gzip
pkgs.python3
pkgs.rpm
];
text = ''
exec ${pkgs.bash}/bin/bash ${./scripts/build-rpm.sh}
'';
};
in in
{ {
packages = { packages = {
default = prem2resolve-wrapped; default = prem2resolve-wrapped;
prem2resolve = prem2resolve-wrapped; prem2resolve = prem2resolve-wrapped;
build-rpm = build-rpm;
}; };
apps = { apps = {
@@ -37,6 +51,10 @@
type = "app"; type = "app";
program = "${prem2resolve-wrapped}/bin/prem2resolve"; program = "${prem2resolve-wrapped}/bin/prem2resolve";
}; };
build-rpm = {
type = "app";
program = "${build-rpm}/bin/build-rpm";
};
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {