Skip to content

Commit

Permalink
floxify take 2 (#12)
Browse files Browse the repository at this point in the history
* chore: incorporating main branch tweaks to profile.d

* flakebump

* chore: incorporating main branch tweaks to pkgs/*

* chore: incorporating main branch tweaks to .github/workflows

* chore: incorporating remaining misc main branch tweaks

* Update pkgs/etc-profiles/pkg-fun.nix

* restore flake.nix/lock

* doc: document library path handlers

* test: move test from floxpkgs

* fix uri GHA

---------

Co-authored-by: Alex Ameen <[email protected]>
  • Loading branch information
limeytexan and aakropotkin authored Jul 5, 2023
1 parent fe737f4 commit 95a30d6
Show file tree
Hide file tree
Showing 7 changed files with 1,408 additions and 87 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/compare-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ jobs:
echo "selfURI: $selfURI" >&2;
echo "Installing deps" >&2;
nix profile install 'nixpkgs#krb5^out,dev' -L;
nix profile install 'nixpkgs#pkg-config' -L;
nix profile install "$selfURI#etc-profiles" -L;
nix profile install 'nixpkgs#krb5^out,dev' -L;
nix profile install 'nixpkgs#pkg-config' -L;
nix profile install "$selfURI#etc-profiles" -L;
nix profile install "nixpkgs#nodejs" -L;
echo "Activating env" >&2;
export FLOX_ENV="$HOME/.nix-profile";
Expand All @@ -84,3 +85,20 @@ jobs:
echo "---" >&2;
exit 1;
fi
- name: Node.js KRB5 Test
shell: bash
run: |
export FLOX_ENV="$HOME/.nix-profile";
. "$FLOX_ENV/etc/profile";
mkdir ./node-krb5;
cd ./node-krb5;
# Install `krb5' module with `npm'.
npm i krb5;
if [[ -x "$PWD/node_modules/krb5/build/Release/krb5.node" ]]; then
echo "PASS: npm" >&2;
exit 0;
else
echo "FAIL: npm" >&2;
exit 1;
fi
17 changes: 17 additions & 0 deletions .github/workflows/trivial-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
echo "Creating flox.nix" >&2;
cat <<EOF > ./flox.nix
{
packages.nixpkgs-flox.nodejs = {};
packages.nixpkgs-flox.krb5 = {
meta.outputsToInstall = ["out" "dev"];
};
Expand Down Expand Up @@ -95,3 +96,19 @@ jobs:
echo "---" >&2;
exit 1;
fi
- name: Node.js KRB5 Test
shell: bash
run: |
runEnv() { flox activate -e krb5-dev -- "$@"; }
mkdir ./node-krb5;
cd ./node-krb5;
# Install `krb5' module with `npm'.
runEnv npm i krb5;
if [[ -x "$PWD/node_modules/krb5/build/Release/krb5.node" ]]; then
echo "PASS: npm" >&2;
exit 0;
else
echo "FAIL: npm" >&2;
exit 1;
fi
Loading

0 comments on commit 95a30d6

Please sign in to comment.