From 398dc270a3700305fda55ccbab34e3c49055e0c9 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:35:34 +0200 Subject: [PATCH] feat: drop garnix Signed-off-by: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> --- .github/workflows/build.yaml | 26 ++++++++++++++++++++++++++ README.md | 7 +++++++ flake.lock | 28 ++++++++++++++-------------- flake.nix | 25 +++++++++++-------------- 4 files changed, 58 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000..574f6ec8 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +name: "Build winapps" + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + nix: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v31 + + - name: Set up cache + uses: cachix/cachix-action@v17 + with: + name: winapps + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + skipPush: "${{ github.event_name == 'pull_request' }}" + + - run: nix flake check diff --git a/README.md b/README.md index 72e79244..82077074 100644 --- a/README.md +++ b/README.md @@ -733,6 +733,13 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional winapps.packages."${system}".winapps winapps.packages."${system}".winapps-launcher # optional ]; + + # set up binary cache (optional) + nix.settings = { + substituters = [ "https://winapps.cachix.org/" ]; + trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ]; + trusted-users = [ "" ]; # replace with your username + }; } ) ]; diff --git a/flake.lock b/flake.lock index ea03fc4e..17403ee2 100644 --- a/flake.lock +++ b/flake.lock @@ -2,12 +2,12 @@ "nodes": { "flake-compat": { "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", - "revCount": 57, + "lastModified": 1733328505, + "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", + "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", + "revCount": 69, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?rev=ff81ac966bb2cae68946d5ed5fc4994f96d0ffec&revCount=69" }, "original": { "type": "tarball", @@ -19,11 +19,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -34,11 +34,11 @@ }, "nix-filter": { "locked": { - "lastModified": 1731533336, - "narHash": "sha256-oRam5PS1vcrr5UPgALW0eo1m/5/pls27Z/pabHNy2Ms=", + "lastModified": 1757882181, + "narHash": "sha256-+cCxYIh2UNalTz364p+QYmWHs0P+6wDhiWR4jDIKQIU=", "owner": "numtide", "repo": "nix-filter", - "rev": "f7653272fd234696ae94229839a99b73c9ab7de0", + "rev": "59c44d1909c72441144b93cf0f054be7fe764de5", "type": "github" }, "original": { @@ -49,11 +49,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1751984180, - "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", + "lastModified": 1780243769, + "narHash": "sha256-x5UQuRsH3MqI0U9afaXSNqzTPSeZlRLvFAav2Ux1pNw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", + "rev": "331800de5053fcebacf6813adb5db9c9dca22a0c", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index c8dc9407..c485da76 100644 --- a/flake.nix +++ b/flake.nix @@ -9,16 +9,6 @@ nix-filter.url = "github:numtide/nix-filter"; }; - nixConfig = { - extra-substituters = [ - "https://cache.garnix.io" - ]; - - extra-trusted-public-keys = [ - "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" - ]; - }; - outputs = { nixpkgs, @@ -32,11 +22,18 @@ pkgs = import nixpkgs { inherit system; }; in rec { - formatter = pkgs.nixfmt-rfc-style; + formatter = pkgs.nixfmt; + + packages = { + winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; }; + winapps-launcher = pkgs.callPackage ./packages/winapps-launcher { + inherit (packages) winapps; + }; + }; - packages.winapps = pkgs.callPackage ./packages/winapps { inherit nix-filter; }; - packages.winapps-launcher = pkgs.callPackage ./packages/winapps-launcher { - inherit (packages) winapps; + checks = { + build-winapps = packages.winapps; + build-launcher = packages.winapps-launcher; }; } );