File tree Expand file tree Collapse file tree 5 files changed +24
-14
lines changed
Expand file tree Collapse file tree 5 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1+ # Adapted from https://github.com/brianmay/penguin_memories/blob/main/.github/workflows/update_hashes.yml
12name : Test building Nix packages
23on :
34 workflow_dispatch :
910jobs :
1011 build :
1112 strategy :
13+ fail-fast : false
1214 matrix :
1315 target :
1416 - os : Linux x86_64
2325 steps :
2426 - uses : actions/checkout@v4
2527 - name : Setup Nix
26- uses : cachix/install -nix-action@v31
28+ uses : DeterminateSystems/determinate -nix-action@v3.13.2
2729 with :
28- github_access_token : ${{ secrets.GITHUB_TOKEN }}
29- - run : nix build --impure
30+ github-token : ${{ secrets.GITHUB_TOKEN }}
31+ - name : Nix binary cache
32+ uses : nix-community/cache-nix-action@v6.1.3
33+ with :
34+ primary-key : nix-${{ matrix.target.os }}-${{ hashFiles('**/*.nix', 'flake.lock') }}
35+ restore-prefixes-first-match : nix-${{ matrix.target.os }}-
36+ - name : Check Nix flake
37+ run : nix flake check -L --impure
38+ env :
39+ NIXPKGS_ALLOW_UNFREE : 1
40+ - name : Build Nix flake
41+ run : nix build --impure
3042 env :
3143 NIXPKGS_ALLOW_UNFREE : 1
Original file line number Diff line number Diff line change 11# Overlay.
22
3- self : super : {
4- formal = super . callPackage ./pkgs/formal.nix { } ;
3+ final : prev : {
4+ formal = prev . callPackage ./pkgs/formal.nix { } ;
55}
Original file line number Diff line number Diff line change 1010
1111let
1212 inherit ( stdenv . hostPlatform ) system ;
13- fetch = hash : fetchurl {
14- url = "https://static-assets.formalcloud.net/desktop-app/darwin/formal-${ version } .pkg" ;
15- inherit hash ;
16- } ;
1713
1814 platforms = [ "aarch64-darwin" "x86_64-darwin" ] ;
1915in
2016stdenv . mkDerivation {
2117 inherit pname version meta ;
22-
23- src = fetch "sha256-OnR3t+/Et9CWuomWZl+KyL/vdO+MOZyhJnyM6WkIVZY=" ;
18+ src = fetchurl {
19+ url = "https://static-assets.formalcloud.net/desktop-app/darwin/formal-${ version } .pkg" ;
20+ hash = "sha256-Qia9kOzQAWo6fLJHJmVz+aBZqYXnJLDV8ypfb5izNJk=" ;
21+ } ;
2422
2523 nativeBuildInputs = [
2624 cpio
Original file line number Diff line number Diff line change 1313
1414let
1515 pname = "formal" ;
16- version = "0.4.1 " ;
16+ version = "0.4.3 " ;
1717 meta = {
1818 description = "Formal Desktop" ;
1919 homepage = "https://joinformal.com" ;
Original file line number Diff line number Diff line change 1818 } ;
1919
2020 sources = rec {
21- aarch64-linux = fetch "arm64" "sha256-GrHTSo0uIx6KzB3xO8tXKLNdBRVf71Awkgniwbvag1w =" ;
22- x86_64-linux = fetch "amd64" "sha256-9FwakjTp1MJDl7ioyobgf38ycdwmOYi+KThcD5ZOOhY =" ;
21+ aarch64-linux = fetch "arm64" "sha256-cVZaIWLS+o+Z+/Wb1YfyIEZPowJaFMZIHTyPpYjguT8 =" ;
22+ x86_64-linux = fetch "amd64" "sha256-4KFugcLbd+jwTTJf2f6FPe/gMKXjcB3GiAODwxKYBqs =" ;
2323 } ;
2424 platforms = builtins . attrNames sources ;
2525in
You can’t perform that action at this time.
0 commit comments