Fix regression in Nix Flake
In PR #105, a regression was introduced into the nix flake which disabled consumers from access the package. This pr fixes that regression. Additionally adds a nix smoke test for a backstop against this in the future
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -77,3 +77,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v1.62.0
|
version: v1.62.0
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
|
test-nix:
|
||||||
|
name: Test Nix Flake
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- run: nix run .#default > help.txt
|
||||||
|
- name: Verify help text
|
||||||
|
run: |
|
||||||
|
FIRST_LINE=$(head -n 1 help.txt)
|
||||||
|
EXPECTED="Issues chained together like beads. A lightweight issue tracker with first-class dependency support."
|
||||||
|
if [ "$FIRST_LINE" != "$EXPECTED" ]; then
|
||||||
|
echo "❌ First line of help.txt doesn't match expected output"
|
||||||
|
echo "Expected: $EXPECTED"
|
||||||
|
echo "Got: $FIRST_LINE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "✅ Help text first line is correct"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.default = pkgs.callPackage { inherit pkgs self; };
|
packages.default = pkgs.callPackage ./default.nix { inherit pkgs self; };
|
||||||
|
|
||||||
apps.default = {
|
apps.default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
|
|||||||
Reference in New Issue
Block a user