mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
Compare commits
No commits in common. "b6619bf0b2f397600fa4a83335ec975c8bdf115f" and "dd5ee96b87cffa52da447f29fa4f63b16630f31e" have entirely different histories.
b6619bf0b2
...
dd5ee96b87
11 changed files with 121 additions and 268 deletions
88
.github/actions/nix/action.yml
vendored
88
.github/actions/nix/action.yml
vendored
|
@ -1,88 +0,0 @@
|
||||||
# adapted from https://github.com/azuwis/actions/tree/7236424fa0fdc8d82df7cd4bff831a9d2338ce9e/nix
|
|
||||||
name: Install Nix and setup cache
|
|
||||||
inputs:
|
|
||||||
nix_conf:
|
|
||||||
description: Extra nix.conf config
|
|
||||||
default: |
|
|
||||||
accept-flake-config = true
|
|
||||||
build-dir = /nix/var
|
|
||||||
experimental-features = pipe-operator
|
|
||||||
keep-derivations = true
|
|
||||||
keep-outputs = true
|
|
||||||
# key:
|
|
||||||
# description: Key to actions/cache
|
|
||||||
# default: nix
|
|
||||||
# install_action:
|
|
||||||
# description: Set `nixbuild` to use nixbuild/nix-quick-install-action, otherwide use cachix/install-nix-action
|
|
||||||
# default: nixbuild
|
|
||||||
# use_nixpkgs_in_flake:
|
|
||||||
# description: Use nixpkgs defined in flake.nix
|
|
||||||
# default: true
|
|
||||||
# nixpkgs_url:
|
|
||||||
# description: Nixpkgs URL
|
|
||||||
# default: https://nixos.org/channels/nixos-24.05
|
|
||||||
clean:
|
|
||||||
description: Clean up disk space
|
|
||||||
default: false
|
|
||||||
btrfs:
|
|
||||||
description: Use BTRFS to setup RAID0
|
|
||||||
default: false
|
|
||||||
attic_token:
|
|
||||||
description: token to access attic cache
|
|
||||||
# debug:
|
|
||||||
# description: Enable debug
|
|
||||||
# default: false
|
|
||||||
# debug_token:
|
|
||||||
# default: ${{ github.token }}
|
|
||||||
# description: Set github token for gh cli
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- shell: bash
|
|
||||||
env:
|
|
||||||
CLEAN: ${{ inputs.clean }}
|
|
||||||
BTRFS: ${{ inputs.btrfs }}
|
|
||||||
run: exec ${{ github.action_path }}/prepare.sh
|
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v15
|
|
||||||
with:
|
|
||||||
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
|
||||||
extra-conf: ${{ inputs.nix_conf }}
|
|
||||||
|
|
||||||
- name: Install and login to attic cache
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
nix profile install "nixpkgs#attic-client"
|
|
||||||
attic login oizys https://attic.dayl.in "${{ inputs.attic_token}}"
|
|
||||||
|
|
||||||
# - name: Nix restore pre
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# CACHE_KEY: ${{ inputs.key }}
|
|
||||||
# run: exec ${{ github.action_path }}/restore.sh pre
|
|
||||||
# - uses: actions/cache/restore@v4
|
|
||||||
# with:
|
|
||||||
# key: ${{ env.CACHE_KEY }}-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_TIMESTAMP }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ env.CACHE_KEY }}-${{ runner.os }}-${{ runner.arch }}
|
|
||||||
# path: |
|
|
||||||
# /nix/store
|
|
||||||
# /nix/var/nix/db
|
|
||||||
# /nix/var/nix/gcroots
|
|
||||||
# /nix/var/nix/profiles
|
|
||||||
# ~/.cache/nix
|
|
||||||
# ~/.local/state/nix
|
|
||||||
# ~/.nix-channels
|
|
||||||
# ~/.nix-defexpr
|
|
||||||
# - name: Nix restore post
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# USE_NIXPKGS_IN_FLAKE: ${{ inputs.use_nixpkgs_in_flake }}
|
|
||||||
# NIXPKGS_URL: ${{ inputs.nixpkgs_url }}
|
|
||||||
# run: exec ${{ github.action_path }}/restore.sh post
|
|
||||||
# - name: Debug
|
|
||||||
# if: ${{ inputs.debug == true || inputs.debug == 'true' || inputs.debug == 'nopause' }}
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# GH_TOKEN: ${{ inputs.debug_token }}
|
|
||||||
# run: exec ${{ github.action_path }}/debug.sh "${{ inputs.debug }}"
|
|
87
.github/actions/nix/prepare.sh
vendored
87
.github/actions/nix/prepare.sh
vendored
|
@ -1,87 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
case "$RUNNER_OS" in
|
|
||||||
Linux)
|
|
||||||
if [ "$CLEAN" = true ]; then
|
|
||||||
echo "Disk clean, before:"
|
|
||||||
df -h -x tmpfs
|
|
||||||
sudo rm -rf \
|
|
||||||
/etc/skel/.cargo \
|
|
||||||
/etc/skel/.dotnet \
|
|
||||||
/etc/skel/.rustup \
|
|
||||||
/home/runner/.cargo \
|
|
||||||
/home/runner/.dotnet \
|
|
||||||
/home/runner/.rustup \
|
|
||||||
/home/runneradmin/.cargo \
|
|
||||||
/home/runneradmin/.dotnet \
|
|
||||||
/home/runneradmin/.rustup \
|
|
||||||
/opt/az \
|
|
||||||
/opt/google \
|
|
||||||
/opt/hostedtoolcache \
|
|
||||||
/opt/microsoft \
|
|
||||||
/opt/pipx \
|
|
||||||
/root/.sbt \
|
|
||||||
/usr/lib/google-cloud-sdk \
|
|
||||||
/usr/lib/jvm \
|
|
||||||
/usr/local \
|
|
||||||
/usr/share/az_* \
|
|
||||||
/usr/share/dotnet \
|
|
||||||
/usr/share/miniconda \
|
|
||||||
/usr/share/swift
|
|
||||||
docker image prune --all --force >/dev/null
|
|
||||||
echo
|
|
||||||
echo "After:"
|
|
||||||
df -h -x tmpfs
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
if [ "$BTRFS" = true ]; then
|
|
||||||
echo "Make /nix BTRFS RAID0 from /btrfs and /mnt/btrfs"
|
|
||||||
sudo touch /btrfs /mnt/btrfs
|
|
||||||
sudo chmod 600 /btrfs /mnt/btrfs
|
|
||||||
sudo fallocate --zero-range --length "$(($(df --block-size=1 --output=avail / | sed -n 2p) - 2147483648))" /btrfs
|
|
||||||
sudo fallocate --zero-range --length "$(df --block-size=1 --output=avail /mnt | sed -n 2p)" /mnt/btrfs
|
|
||||||
sudo losetup /dev/loop6 /btrfs
|
|
||||||
sudo losetup /dev/loop7 /mnt/btrfs
|
|
||||||
sudo mkfs.btrfs --data raid0 /dev/loop6 /dev/loop7
|
|
||||||
sudo mkdir /nix
|
|
||||||
sudo mount -t btrfs -o compress=zstd /dev/loop6 /nix
|
|
||||||
# issue with determinate installer?
|
|
||||||
# sudo chown "${RUNNER_USER}:" /nix
|
|
||||||
elif [ "$(findmnt -bno size /mnt)" -gt 20000000000 ]; then
|
|
||||||
df -h -x tmpfs
|
|
||||||
echo "/mnt is large, bind mount /mnt/nix"
|
|
||||||
# sudo install -d -o "$RUNNER_USER" /mnt/nix /nix
|
|
||||||
# issue with determinate installer?
|
|
||||||
sudo install -d /mnt/nix /nix
|
|
||||||
sudo mount --bind /mnt/nix /nix
|
|
||||||
fi
|
|
||||||
echo "Final:"
|
|
||||||
df -h -x tmpfs
|
|
||||||
echo
|
|
||||||
;;
|
|
||||||
macOS)
|
|
||||||
if [ "$CLEAN" = true ]; then
|
|
||||||
echo "Disk clean, before:"
|
|
||||||
df -h /
|
|
||||||
sudo rm -rf \
|
|
||||||
/Applications/Xcode_* \
|
|
||||||
/Library/Developer/CoreSimulator \
|
|
||||||
/Library/Frameworks \
|
|
||||||
/Users/runner/.dotnet \
|
|
||||||
/Users/runner/.rustup \
|
|
||||||
/Users/runner/Library/Android \
|
|
||||||
/Users/runner/Library/Caches \
|
|
||||||
/Users/runner/Library/Developer/CoreSimulator \
|
|
||||||
/Users/runner/hostedtoolcache
|
|
||||||
echo
|
|
||||||
echo "After:"
|
|
||||||
df -h /
|
|
||||||
fi
|
|
||||||
# This save about 110G disk space, and take about 0.6s
|
|
||||||
sudo rm -rf \
|
|
||||||
/Library/Developer/CoreSimulator \
|
|
||||||
/Users/runner/Library/Developer/CoreSimulator
|
|
||||||
# Disable MDS service on macOS
|
|
||||||
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist || true
|
|
||||||
;;
|
|
||||||
esac
|
|
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
|
@ -1,6 +1,5 @@
|
||||||
name: Build NixOS (on demand)
|
name: Build NixOS (on demand)
|
||||||
|
|
||||||
# TODO: accept , style sep in hwylcli
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -38,11 +37,28 @@ jobs:
|
||||||
host: github.com
|
host: github.com
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/clean-disk
|
||||||
with:
|
with:
|
||||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
purge-packages: 'true'
|
||||||
clean: true
|
|
||||||
btrfs: true
|
- uses: DeterminateSystems/nix-installer-action@v15
|
||||||
|
with:
|
||||||
|
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
||||||
|
extra-conf: |
|
||||||
|
experimental-features = pipe-operator
|
||||||
|
accept-flake-config = true
|
||||||
|
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
||||||
|
|
||||||
|
# - name: Install and login to attic cache
|
||||||
|
# run: |
|
||||||
|
# nix profile install "nixpkgs#attic-client"
|
||||||
|
# attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
|
||||||
|
# - uses: cachix/cachix-action@v15
|
||||||
|
# with:
|
||||||
|
# name: daylin
|
||||||
|
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: write lock file
|
- name: write lock file
|
||||||
if: "${{ inputs.lockFile != '' }}"
|
if: "${{ inputs.lockFile != '' }}"
|
||||||
|
@ -54,12 +70,13 @@ jobs:
|
||||||
run: nix build . --print-build-logs
|
run: nix build . --print-build-logs
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >
|
run: |
|
||||||
nix run .
|
nix run . \
|
||||||
--
|
-- \
|
||||||
cache
|
build --minimal \
|
||||||
--host,="${{ inputs.hosts }}"
|
--host,="${{ inputs.hosts }}" \
|
||||||
--flake .
|
--flake . \
|
||||||
--debug
|
--debug \
|
||||||
--
|
-- \
|
||||||
--keep-going
|
--keep-going \
|
||||||
|
--print-build-logs
|
||||||
|
|
43
.github/workflows/update.yml
vendored
43
.github/workflows/update.yml
vendored
|
@ -28,12 +28,27 @@ jobs:
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
- uses: daylin-bot/actions/setup@main
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/clean-disk
|
||||||
with:
|
|
||||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
|
||||||
|
|
||||||
- run: git checkout -B flake-lock
|
- run: git checkout -B flake-lock
|
||||||
|
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@v15
|
||||||
|
with:
|
||||||
|
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
||||||
|
extra-conf: |
|
||||||
|
experimental-features = pipe-operator
|
||||||
|
accept-flake-config = true
|
||||||
|
|
||||||
|
- name: Install and login to attic cache
|
||||||
|
run: |
|
||||||
|
nix profile install "nixpkgs#attic-client"
|
||||||
|
attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
|
||||||
|
# - uses: cachix/cachix-action@v15
|
||||||
|
# with:
|
||||||
|
# name: daylin
|
||||||
|
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Update nix flake
|
- name: Update nix flake
|
||||||
run: |
|
run: |
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
@ -51,9 +66,11 @@ jobs:
|
||||||
nix run .
|
nix run .
|
||||||
--
|
--
|
||||||
cache
|
cache
|
||||||
--host,=",othalan,algiz"
|
--host "othalan"
|
||||||
--flake .
|
--flake .
|
||||||
--debug
|
--debug
|
||||||
|
--
|
||||||
|
--print-build-logs
|
||||||
|
|
||||||
- name: Commit Updates
|
- name: Commit Updates
|
||||||
uses: daylin-bot/actions/commit-and-push@main
|
uses: daylin-bot/actions/commit-and-push@main
|
||||||
|
@ -84,16 +101,21 @@ jobs:
|
||||||
host: github.com
|
host: github.com
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
- uses: DeterminateSystems/nix-installer-action@v15
|
||||||
- uses: ./.github/actions/nix
|
|
||||||
with:
|
with:
|
||||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
||||||
clean: true
|
extra-conf: |
|
||||||
btrfs: true
|
experimental-features = pipe-operator
|
||||||
|
accept-flake-config = true
|
||||||
|
|
||||||
|
- uses: ./.github/actions/clean-disk
|
||||||
|
with:
|
||||||
|
purge-packages: 'true'
|
||||||
|
|
||||||
- name: Pre-build oizys
|
- name: Pre-build oizys
|
||||||
run: nix build .
|
run: nix build .
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >
|
run: >
|
||||||
nix run .
|
nix run .
|
||||||
|
@ -104,8 +126,10 @@ jobs:
|
||||||
--debug
|
--debug
|
||||||
--
|
--
|
||||||
--keep-going
|
--keep-going
|
||||||
|
--print-build-logs
|
||||||
--out-link current
|
--out-link current
|
||||||
|
|
||||||
|
|
||||||
- run: git checkout flake-lock
|
- run: git checkout flake-lock
|
||||||
|
|
||||||
- name: Pre-build oizys
|
- name: Pre-build oizys
|
||||||
|
@ -121,6 +145,7 @@ jobs:
|
||||||
--debug
|
--debug
|
||||||
--
|
--
|
||||||
--keep-going
|
--keep-going
|
||||||
|
--print-build-logs
|
||||||
--out-link updated
|
--out-link updated
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
|
|
98
flake.lock
98
flake.lock
|
@ -20,11 +20,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731774881,
|
"lastModified": 1731496216,
|
||||||
"narHash": "sha256-1Dxryiw8u2ejntxrrv3sMtIE8WHKxmlN4KeH+uMGbmc=",
|
"narHash": "sha256-nlQrNN+tmJ+iP6Ck/czwZI0Hxz3oNvUyGkVruxJwgwA=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "b31a6a4da8199ae3489057db7d36069a70749a56",
|
"rev": "3b00e96f90cb0040de6d88ad99bf5f4d443f0c59",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -240,11 +240,11 @@
|
||||||
"zig": "zig"
|
"zig": "zig"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731947012,
|
"lastModified": 1731606318,
|
||||||
"narHash": "sha256-OL7pQ/dMLC1Ek+rkXHEXpvx+UBO1Pbo1kTVe2kmcYsY=",
|
"narHash": "sha256-JXgJTl6qK8b7+g9ORH94fZ0sLCwebn8tkpxy1ZG0agA=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "e54ae31d1cf1816f5b9fb7e1fb77d6537dabace6",
|
"rev": "4853597cd9829e622be2c3628dc748407c27c423",
|
||||||
"revCount": 8018,
|
"revCount": 7968,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/ghostty-org/ghostty"
|
"url": "ssh://git@github.com/ghostty-org/ghostty"
|
||||||
},
|
},
|
||||||
|
@ -318,11 +318,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731945258,
|
"lastModified": 1731631654,
|
||||||
"narHash": "sha256-N7uJSSMqHzwH4uahb+Uw3sADVp3XdLfqkP2T144gnFk=",
|
"narHash": "sha256-a6gy39yki4mX/Oj83aG08nNntXxXhM1wjksNXGZ8x5c=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "df9ff4489973afa9e29bb94ac47c946db745b460",
|
"rev": "098e491a43e8b26f4382b48651a4131464bf6a2f",
|
||||||
"revCount": 5475,
|
"revCount": 5456,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland/"
|
"url": "https://github.com/hyprwm/Hyprland/"
|
||||||
|
@ -438,11 +438,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731702627,
|
"lastModified": 1731518387,
|
||||||
"narHash": "sha256-+JeO9gevnXannQxMfR5xzZtF4sYmSlWkX/BPmPx0mWk=",
|
"narHash": "sha256-aZZw1ZvTMLkcA6udlvkA3hrCkuipoWLy8s/JNnIclxY=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "e911361a687753bbbdfe3b6a9eab755ecaf1d9e1",
|
"rev": "315fba5d21d87ddb756d4bebdb49f99d86b0ffe8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -482,11 +482,11 @@
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731845570,
|
"lastModified": 1731586450,
|
||||||
"narHash": "sha256-5reOtlm18XLnh3ezruPOg2wQO+MB7ztsFaIzSUAzeh8=",
|
"narHash": "sha256-upNRIVk5PmBPJ307djkiowhHOx8Dqwb5bpM4XNJH4Ek=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lib-aggregate",
|
"repo": "lib-aggregate",
|
||||||
"rev": "7a1d37b2b16f32536628df9cea6a2003d79a49f9",
|
"rev": "902e1bb3c2ae0f051ff98e4e3eac247f7e6ca392",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -498,11 +498,11 @@
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731683711,
|
"lastModified": 1731416517,
|
||||||
"narHash": "sha256-bq21I1EjXJa/s5Rra9J9ot2NkPCnI0F5uNPurwYLdpE=",
|
"narHash": "sha256-1LGkwq9g/BfM0JuZmWPYwBX5RiqIpW/BxXcsLwkVcGg=",
|
||||||
"rev": "c859d03013712b349d82ee6223948d6d03e63a8d",
|
"rev": "43777939eb2253596ff822771929a8820916fb29",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/c859d03013712b349d82ee6223948d6d03e63a8d.tar.gz?rev=c859d03013712b349d82ee6223948d6d03e63a8d"
|
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/43777939eb2253596ff822771929a8820916fb29.tar.gz?rev=43777939eb2253596ff822771929a8820916fb29"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
@ -615,11 +615,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731682758,
|
"lastModified": 1731565875,
|
||||||
"narHash": "sha256-o54e8oNPPNmU7zHm3uTvsbbQLi7EKX3S6EEndXFG594=",
|
"narHash": "sha256-jN6HcMNVgWPE++8vNQIyerugFDRWG1ffFCORK/vpCUs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-eval-jobs",
|
"repo": "nix-eval-jobs",
|
||||||
"rev": "d926bcd5206c0b7afe47bed92557c8cd5e882b36",
|
"rev": "f2ccb7e2d80601fb43807c36f14703f2342420f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -657,11 +657,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731814505,
|
"lastModified": 1731593150,
|
||||||
"narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=",
|
"narHash": "sha256-FvksinoI2Y6kuwH+cKBu1oDA8uPGfoRqgtQV6O8GDc4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-index-database",
|
"repo": "nix-index-database",
|
||||||
"rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132",
|
"rev": "40d882b55e89add1ded379cc99edaab24983d6d9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -692,11 +692,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731676054,
|
"lastModified": 1731139594,
|
||||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -708,11 +708,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731805462,
|
"lastModified": 1731200463,
|
||||||
"narHash": "sha256-yhEMW4MBi+IAyEJyiKbnFvY1uARyMKJpLUhkczI49wk=",
|
"narHash": "sha256-qDaAweJjdFbVExqs8aG27urUgcgKufkIngHW3Rzustg=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "b9f04e3cf71c23bea21d2768051e6b3068d44734",
|
"rev": "e04234d263750db01c78a412690363dc2226e68a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -745,11 +745,11 @@
|
||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731954473,
|
"lastModified": 1731645556,
|
||||||
"narHash": "sha256-iNzMvn3P/3tinhRpYQVSVukrFP22qqlQ59a9kKYN7LU=",
|
"narHash": "sha256-i27WZwS0f18v+5vODBDrnO5GVlzszseDBXcLQiYr5Yo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "8cfa4547f95836136691e10493f18155694f198a",
|
"rev": "3a7690c5fe0ecfceeddbf09f8642dca424d29793",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -792,16 +792,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731890469,
|
"lastModified": 1731319897,
|
||||||
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
|
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5083ec887760adfe12af64830a66807423a859a7",
|
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -824,11 +824,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731676054,
|
"lastModified": 1731319897,
|
||||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -938,11 +938,11 @@
|
||||||
},
|
},
|
||||||
"stable": {
|
"stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731797254,
|
"lastModified": 1731386116,
|
||||||
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=",
|
"narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59",
|
"rev": "689fed12a013f56d4c4d3f612489634267d86529",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1121,11 +1121,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731703417,
|
"lastModified": 1730743262,
|
||||||
"narHash": "sha256-rheDc/7C+yI+QspYr9J2z9kQ5P9F4ATapI7qyFAe1XA=",
|
"narHash": "sha256-iTLqj3lU8kFehPm5tXpctzkD274t/k1nwSSq3qCWXeg=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "xdg-desktop-portal-hyprland",
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
"rev": "8070f36deec723de71e7557441acb17e478204d3",
|
"rev": "09b23cef06fe248e61cec8862c04b9bcb62f4b6d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
outputs = inputs: (import ./lib inputs).oizysFlake;
|
outputs = inputs: (import ./lib inputs).oizysFlake;
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
my-nixpkgs.url = "github:daylinmorgan/nixpkgs/nixos-unstable";
|
my-nixpkgs.url = "github:daylinmorgan/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
|
|
@ -2,19 +2,10 @@
|
||||||
(loadOverlays inputs ./.)
|
(loadOverlays inputs ./.)
|
||||||
++ [
|
++ [
|
||||||
inputs.nim2nix.overlays.default # adds buildNimPackage
|
inputs.nim2nix.overlays.default # adds buildNimPackage
|
||||||
(final: prev: {
|
(final: _prev: {
|
||||||
stable = import inputs.stable {
|
stable = import inputs.stable {
|
||||||
system = final.system;
|
system = final.system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# nixd + lix = problem, or am I just pulling in nix2.24 now?
|
|
||||||
nixt = prev.nixt.override {
|
|
||||||
nix = final.nixVersions.nix_2_24;
|
|
||||||
};
|
|
||||||
|
|
||||||
nixd = prev.nixd.override {
|
|
||||||
nix = final.nixVersions.nix_2_24;
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
@ -8,7 +8,7 @@ buildNimblePackage {
|
||||||
verions = "unstable";
|
verions = "unstable";
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
nativeBuildInputs = [ openssl ];
|
nativeBuildInputs = [ openssl ];
|
||||||
nimbleDepsHash = "sha256-1AztepAkNtxC3lfi5gTj1QrhejKNsNXa4mUdR958vJM=";
|
nimbleDepsHash = "sha256-J/iuDYR5A771zAuRKA94rwXX9L3+KtiodDxQRFO0GEc=";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "nix begat oizys";
|
description = "nix begat oizys";
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "748f7e1bd6325d39bc531b29ce28f5ef276c5aae",
|
"vcsRevision": "cbeefd675c0884feebad4dc62910092519f8b2ed",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "129117c4e51b13d8eede1ef4a471b134d724b92f"
|
"sha1": "4d043352ad07388d0181c0fd4cf325317e9306d0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jsony": {
|
"jsony": {
|
||||||
|
|
|
@ -13,5 +13,5 @@ bin = @["oizys"]
|
||||||
requires "nim >= 2.0.8"
|
requires "nim >= 2.0.8"
|
||||||
requires "jsony"
|
requires "jsony"
|
||||||
requires "zippy"
|
requires "zippy"
|
||||||
requires "https://github.com/daylinmorgan/hwylterm#HEAD"
|
requires "https://github.com/daylinmorgan/hwylterm#cbeefd67"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import ./[exec, context]
|
||||||
|
|
||||||
# localPassC is used by zippy but the additional
|
# localPassC is used by zippy but the additional
|
||||||
# module mangling on nixos somehow breaks localPassC
|
# module mangling on nixos somehow breaks localPassC
|
||||||
# https://github.com/NixOS/nixpkgs/issues/356524
|
|
||||||
when defined(amd64) and (defined(gcc) or defined(clang)):
|
when defined(amd64) and (defined(gcc) or defined(clang)):
|
||||||
{.passC: "-msse4.1 -mpclmul".}
|
{.passC: "-msse4.1 -mpclmul".}
|
||||||
|
|
||||||
|
@ -80,11 +79,7 @@ proc postGhApi(url: string, body: JsonNode) =
|
||||||
except:
|
except:
|
||||||
errorQuit "failed to get response code"
|
errorQuit "failed to get response code"
|
||||||
|
|
||||||
proc getInProgressRun(
|
proc getInProgressRun(workflow: string, timeout: int = 5000): (GhWorkflowRun, bool) =
|
||||||
workflow: string,
|
|
||||||
timeout: int = 10000
|
|
||||||
): (GhWorkflowRun, bool) =
|
|
||||||
## wait up to 10 seconds to try to fetch ongoing run url
|
|
||||||
let
|
let
|
||||||
start = now()
|
start = now()
|
||||||
timeoutDuration = initDuration(milliseconds = timeout)
|
timeoutDuration = initDuration(milliseconds = timeout)
|
||||||
|
|
Loading…
Reference in a new issue