Skip to content

Commit 78a7e9e

Browse files
chore: update hash for aarch64 linux
1 parent 8c90404 commit 78a7e9e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

flake.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
};
4242
});
4343

44-
binary = ver: hash:
44+
binary = ver: hashes:
4545
mkDerivation (finalAttrs: {
4646
pname = "occasion";
4747
version = ver;
4848

4949
src = pkgs.fetchurl {
5050
url = "https://github.com/itscrystalline/occasion/releases/download/v${ver}/occasion-${releaseName}.tar.gz";
51-
sha256 = hash;
51+
sha256 = hashes.${releaseName};
5252
};
5353

5454
dontUnpack = true;
@@ -73,7 +73,12 @@
7373
});
7474
in rec {
7575
packages.occasion-latest = package ./. "0.3.0";
76-
packages.occasion = binary "0.3.0" "sha256-8WiJdD9AmbF2KVGteMbFwC54oS7XjAOa4r10jFB/1ds=";
76+
packages.occasion = binary "0.3.0" {
77+
linux-x86_64 = "sha256-8WiJdD9AmbF2KVGteMbFwC54oS7XjAOa4r10jFB/1ds=";
78+
linux-aarch64 = "sha256-51C6w14UCYD55LwymUZGE1sfo4GaXOJIiJUj/Vcq09c=";
79+
macos-x86_64 = "${lib.fakeHash}";
80+
macos-aarch64 = "${lib.fakeHash}";
81+
};
7782
packages.default = packages.occasion;
7883
})
7984
// flake-utils.lib.eachDefaultSystemPassThrough (system: {

0 commit comments

Comments
 (0)