mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 09:20:44 -06:00
Compare commits
19 commits
dd5ee96b87
...
b6619bf0b2
Author | SHA1 | Date | |
---|---|---|---|
b6619bf0b2 | |||
c4512ad205 | |||
ec91979acb | |||
38875c732e | |||
72a6de5f9f | |||
f16208b69e | |||
10ec087e7b | |||
fd02d7a3e3 | |||
774f35bfec | |||
734c5b0f8f | |||
ec0c58792d | |||
daeb99d4e9 | |||
6a76620437 | |||
95123022bb | |||
4e30ceffb9 | |||
afa347e80e | |||
e49988ab35 | |||
9352e82219 | |||
b851d4ae01 |
11 changed files with 268 additions and 121 deletions
88
.github/actions/nix/action.yml
vendored
Normal file
88
.github/actions/nix/action.yml
vendored
Normal file
|
@ -0,0 +1,88 @@
|
|||
# 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
Executable file
87
.github/actions/nix/prepare.sh
vendored
Executable file
|
@ -0,0 +1,87 @@
|
|||
#!/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,5 +1,6 @@
|
|||
name: Build NixOS (on demand)
|
||||
|
||||
# TODO: accept , style sep in hwylcli
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
|
@ -37,29 +38,12 @@ jobs:
|
|||
host: github.com
|
||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
- uses: ./.github/actions/nix
|
||||
with:
|
||||
purge-packages: 'true'
|
||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||
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
|
||||
if: "${{ inputs.lockFile != '' }}"
|
||||
run: |
|
||||
|
@ -70,13 +54,12 @@ jobs:
|
|||
run: nix build . --print-build-logs
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
nix run . \
|
||||
-- \
|
||||
build --minimal \
|
||||
--host,="${{ inputs.hosts }}" \
|
||||
--flake . \
|
||||
--debug \
|
||||
-- \
|
||||
--keep-going \
|
||||
--print-build-logs
|
||||
run: >
|
||||
nix run .
|
||||
--
|
||||
cache
|
||||
--host,="${{ inputs.hosts }}"
|
||||
--flake .
|
||||
--debug
|
||||
--
|
||||
--keep-going
|
||||
|
|
43
.github/workflows/update.yml
vendored
43
.github/workflows/update.yml
vendored
|
@ -28,27 +28,12 @@ jobs:
|
|||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- uses: daylin-bot/actions/setup@main
|
||||
- uses: ./.github/actions/clean-disk
|
||||
- uses: ./.github/actions/nix
|
||||
with:
|
||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||
|
||||
- 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
|
||||
run: |
|
||||
nix flake update --commit-lock-file
|
||||
|
@ -66,11 +51,9 @@ jobs:
|
|||
nix run .
|
||||
--
|
||||
cache
|
||||
--host "othalan"
|
||||
--host,=",othalan,algiz"
|
||||
--flake .
|
||||
--debug
|
||||
--
|
||||
--print-build-logs
|
||||
|
||||
- name: Commit Updates
|
||||
uses: daylin-bot/actions/commit-and-push@main
|
||||
|
@ -101,21 +84,16 @@ jobs:
|
|||
host: github.com
|
||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@v15
|
||||
- uses: daylin-bot/actions/setup@main
|
||||
- uses: ./.github/actions/nix
|
||||
with:
|
||||
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
||||
extra-conf: |
|
||||
experimental-features = pipe-operator
|
||||
accept-flake-config = true
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
with:
|
||||
purge-packages: 'true'
|
||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||
clean: true
|
||||
btrfs: true
|
||||
|
||||
- name: Pre-build oizys
|
||||
run: nix build .
|
||||
|
||||
|
||||
- name: Build
|
||||
run: >
|
||||
nix run .
|
||||
|
@ -126,10 +104,8 @@ jobs:
|
|||
--debug
|
||||
--
|
||||
--keep-going
|
||||
--print-build-logs
|
||||
--out-link current
|
||||
|
||||
|
||||
- run: git checkout flake-lock
|
||||
|
||||
- name: Pre-build oizys
|
||||
|
@ -145,7 +121,6 @@ jobs:
|
|||
--debug
|
||||
--
|
||||
--keep-going
|
||||
--print-build-logs
|
||||
--out-link updated
|
||||
|
||||
- run: |
|
||||
|
|
98
flake.lock
98
flake.lock
|
@ -20,11 +20,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731496216,
|
||||
"narHash": "sha256-nlQrNN+tmJ+iP6Ck/czwZI0Hxz3oNvUyGkVruxJwgwA=",
|
||||
"lastModified": 1731774881,
|
||||
"narHash": "sha256-1Dxryiw8u2ejntxrrv3sMtIE8WHKxmlN4KeH+uMGbmc=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "aquamarine",
|
||||
"rev": "3b00e96f90cb0040de6d88ad99bf5f4d443f0c59",
|
||||
"rev": "b31a6a4da8199ae3489057db7d36069a70749a56",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -240,11 +240,11 @@
|
|||
"zig": "zig"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731606318,
|
||||
"narHash": "sha256-JXgJTl6qK8b7+g9ORH94fZ0sLCwebn8tkpxy1ZG0agA=",
|
||||
"lastModified": 1731947012,
|
||||
"narHash": "sha256-OL7pQ/dMLC1Ek+rkXHEXpvx+UBO1Pbo1kTVe2kmcYsY=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "4853597cd9829e622be2c3628dc748407c27c423",
|
||||
"revCount": 7968,
|
||||
"rev": "e54ae31d1cf1816f5b9fb7e1fb77d6537dabace6",
|
||||
"revCount": 8018,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/ghostty-org/ghostty"
|
||||
},
|
||||
|
@ -318,11 +318,11 @@
|
|||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731631654,
|
||||
"narHash": "sha256-a6gy39yki4mX/Oj83aG08nNntXxXhM1wjksNXGZ8x5c=",
|
||||
"lastModified": 1731945258,
|
||||
"narHash": "sha256-N7uJSSMqHzwH4uahb+Uw3sADVp3XdLfqkP2T144gnFk=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "098e491a43e8b26f4382b48651a4131464bf6a2f",
|
||||
"revCount": 5456,
|
||||
"rev": "df9ff4489973afa9e29bb94ac47c946db745b460",
|
||||
"revCount": 5475,
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/hyprwm/Hyprland/"
|
||||
|
@ -438,11 +438,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731518387,
|
||||
"narHash": "sha256-aZZw1ZvTMLkcA6udlvkA3hrCkuipoWLy8s/JNnIclxY=",
|
||||
"lastModified": 1731702627,
|
||||
"narHash": "sha256-+JeO9gevnXannQxMfR5xzZtF4sYmSlWkX/BPmPx0mWk=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprutils",
|
||||
"rev": "315fba5d21d87ddb756d4bebdb49f99d86b0ffe8",
|
||||
"rev": "e911361a687753bbbdfe3b6a9eab755ecaf1d9e1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -482,11 +482,11 @@
|
|||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731586450,
|
||||
"narHash": "sha256-upNRIVk5PmBPJ307djkiowhHOx8Dqwb5bpM4XNJH4Ek=",
|
||||
"lastModified": 1731845570,
|
||||
"narHash": "sha256-5reOtlm18XLnh3ezruPOg2wQO+MB7ztsFaIzSUAzeh8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "lib-aggregate",
|
||||
"rev": "902e1bb3c2ae0f051ff98e4e3eac247f7e6ca392",
|
||||
"rev": "7a1d37b2b16f32536628df9cea6a2003d79a49f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -498,11 +498,11 @@
|
|||
"lix": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1731416517,
|
||||
"narHash": "sha256-1LGkwq9g/BfM0JuZmWPYwBX5RiqIpW/BxXcsLwkVcGg=",
|
||||
"rev": "43777939eb2253596ff822771929a8820916fb29",
|
||||
"lastModified": 1731683711,
|
||||
"narHash": "sha256-bq21I1EjXJa/s5Rra9J9ot2NkPCnI0F5uNPurwYLdpE=",
|
||||
"rev": "c859d03013712b349d82ee6223948d6d03e63a8d",
|
||||
"type": "tarball",
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/43777939eb2253596ff822771929a8820916fb29.tar.gz?rev=43777939eb2253596ff822771929a8820916fb29"
|
||||
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/c859d03013712b349d82ee6223948d6d03e63a8d.tar.gz?rev=c859d03013712b349d82ee6223948d6d03e63a8d"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
|
@ -615,11 +615,11 @@
|
|||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731565875,
|
||||
"narHash": "sha256-jN6HcMNVgWPE++8vNQIyerugFDRWG1ffFCORK/vpCUs=",
|
||||
"lastModified": 1731682758,
|
||||
"narHash": "sha256-o54e8oNPPNmU7zHm3uTvsbbQLi7EKX3S6EEndXFG594=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-eval-jobs",
|
||||
"rev": "f2ccb7e2d80601fb43807c36f14703f2342420f3",
|
||||
"rev": "d926bcd5206c0b7afe47bed92557c8cd5e882b36",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -657,11 +657,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731593150,
|
||||
"narHash": "sha256-FvksinoI2Y6kuwH+cKBu1oDA8uPGfoRqgtQV6O8GDc4=",
|
||||
"lastModified": 1731814505,
|
||||
"narHash": "sha256-l9ryrx1Twh08a+gxrMGM9O/aZKEimZfa6sZVyPCImgI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-index-database",
|
||||
"rev": "40d882b55e89add1ded379cc99edaab24983d6d9",
|
||||
"rev": "bdba246946fb079b87b4cada4df9b1cdf1c06132",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -692,11 +692,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1731139594,
|
||||
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=",
|
||||
"lastModified": 1731676054,
|
||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2",
|
||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -708,11 +708,11 @@
|
|||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1731200463,
|
||||
"narHash": "sha256-qDaAweJjdFbVExqs8aG27urUgcgKufkIngHW3Rzustg=",
|
||||
"lastModified": 1731805462,
|
||||
"narHash": "sha256-yhEMW4MBi+IAyEJyiKbnFvY1uARyMKJpLUhkczI49wk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "e04234d263750db01c78a412690363dc2226e68a",
|
||||
"rev": "b9f04e3cf71c23bea21d2768051e6b3068d44734",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -745,11 +745,11 @@
|
|||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731645556,
|
||||
"narHash": "sha256-i27WZwS0f18v+5vODBDrnO5GVlzszseDBXcLQiYr5Yo=",
|
||||
"lastModified": 1731954473,
|
||||
"narHash": "sha256-iNzMvn3P/3tinhRpYQVSVukrFP22qqlQ59a9kKYN7LU=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "3a7690c5fe0ecfceeddbf09f8642dca424d29793",
|
||||
"rev": "8cfa4547f95836136691e10493f18155694f198a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -792,16 +792,16 @@
|
|||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1731319897,
|
||||
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
|
||||
"lastModified": 1731890469,
|
||||
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
|
||||
"rev": "5083ec887760adfe12af64830a66807423a859a7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -824,11 +824,11 @@
|
|||
},
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1731319897,
|
||||
"narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=",
|
||||
"lastModified": 1731676054,
|
||||
"narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc460ec76cbff0e66e269457d7b728432263166c",
|
||||
"rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -938,11 +938,11 @@
|
|||
},
|
||||
"stable": {
|
||||
"locked": {
|
||||
"lastModified": 1731386116,
|
||||
"narHash": "sha256-lKA770aUmjPHdTaJWnP3yQ9OI1TigenUqVC3wweqZuI=",
|
||||
"lastModified": 1731797254,
|
||||
"narHash": "sha256-df3dJApLPhd11AlueuoN0Q4fHo/hagP75LlM5K1sz9g=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "689fed12a013f56d4c4d3f612489634267d86529",
|
||||
"rev": "e8c38b73aeb218e27163376a2d617e61a2ad9b59",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1121,11 +1121,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730743262,
|
||||
"narHash": "sha256-iTLqj3lU8kFehPm5tXpctzkD274t/k1nwSSq3qCWXeg=",
|
||||
"lastModified": 1731703417,
|
||||
"narHash": "sha256-rheDc/7C+yI+QspYr9J2z9kQ5P9F4ATapI7qyFAe1XA=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "xdg-desktop-portal-hyprland",
|
||||
"rev": "09b23cef06fe248e61cec8862c04b9bcb62f4b6d",
|
||||
"rev": "8070f36deec723de71e7557441acb17e478204d3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
outputs = inputs: (import ./lib inputs).oizysFlake;
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
my-nixpkgs.url = "github:daylinmorgan/nixpkgs/nixos-unstable";
|
||||
|
||||
|
|
|
@ -2,10 +2,19 @@
|
|||
(loadOverlays inputs ./.)
|
||||
++ [
|
||||
inputs.nim2nix.overlays.default # adds buildNimPackage
|
||||
(final: _prev: {
|
||||
(final: prev: {
|
||||
stable = import inputs.stable {
|
||||
system = final.system;
|
||||
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";
|
||||
src = lib.cleanSource ./.;
|
||||
nativeBuildInputs = [ openssl ];
|
||||
nimbleDepsHash = "sha256-J/iuDYR5A771zAuRKA94rwXX9L3+KtiodDxQRFO0GEc=";
|
||||
nimbleDepsHash = "sha256-1AztepAkNtxC3lfi5gTj1QrhejKNsNXa4mUdR958vJM=";
|
||||
|
||||
meta = {
|
||||
description = "nix begat oizys";
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
"packages": {
|
||||
"hwylterm": {
|
||||
"version": "0.1.0",
|
||||
"vcsRevision": "cbeefd675c0884feebad4dc62910092519f8b2ed",
|
||||
"vcsRevision": "748f7e1bd6325d39bc531b29ce28f5ef276c5aae",
|
||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "4d043352ad07388d0181c0fd4cf325317e9306d0"
|
||||
"sha1": "129117c4e51b13d8eede1ef4a471b134d724b92f"
|
||||
}
|
||||
},
|
||||
"jsony": {
|
||||
|
|
|
@ -13,5 +13,5 @@ bin = @["oizys"]
|
|||
requires "nim >= 2.0.8"
|
||||
requires "jsony"
|
||||
requires "zippy"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#cbeefd67"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#HEAD"
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import ./[exec, context]
|
|||
|
||||
# localPassC is used by zippy but the additional
|
||||
# module mangling on nixos somehow breaks localPassC
|
||||
# https://github.com/NixOS/nixpkgs/issues/356524
|
||||
when defined(amd64) and (defined(gcc) or defined(clang)):
|
||||
{.passC: "-msse4.1 -mpclmul".}
|
||||
|
||||
|
@ -79,7 +80,11 @@ proc postGhApi(url: string, body: JsonNode) =
|
|||
except:
|
||||
errorQuit "failed to get response code"
|
||||
|
||||
proc getInProgressRun(workflow: string, timeout: int = 5000): (GhWorkflowRun, bool) =
|
||||
proc getInProgressRun(
|
||||
workflow: string,
|
||||
timeout: int = 10000
|
||||
): (GhWorkflowRun, bool) =
|
||||
## wait up to 10 seconds to try to fetch ongoing run url
|
||||
let
|
||||
start = now()
|
||||
timeoutDuration = initDuration(milliseconds = timeout)
|
||||
|
|
Loading…
Reference in a new issue