mirror of
https://github.com/logos-blockchain/logos-blockchain-circuits.git
synced 2026-02-09 07:43:07 +00:00
wip
This commit is contained in:
parent
b71a648643
commit
df057aa15a
24
flake.nix
24
flake.nix
@ -12,18 +12,16 @@
|
||||
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
"x86_64-windows"
|
||||
];
|
||||
|
||||
forAll = lib.genAttrs systems;
|
||||
|
||||
circuitsVersion = "0.3.2";
|
||||
|
||||
circuitsHashes = {
|
||||
x86_64-linux = "sha256-80+GrB3kBhwLHvNemme5Vig6tPDRRZC7xHps0DNonzM=";
|
||||
aarch64-darwin = "sha256-FbLgrHaa8djFEaA69WpZMB3uozkLT/abQiCWKrkzcsk=";
|
||||
x86_64-windows = "sha256-VOBUXlXNHTY0l91G+B1vybDfES0Y0HXhUytJIfFEiBA=";
|
||||
};
|
||||
circuitsVersion = "0.4.1";
|
||||
versions = import ./versions.nix;
|
||||
circuitsHashes = versions.${circuitsVersion};
|
||||
|
||||
githubBase = "https://github.com/logos-blockchain/logos-blockchain-circuits/releases/download";
|
||||
|
||||
@ -49,6 +47,12 @@
|
||||
"aarch64"
|
||||
else
|
||||
throw "Unsupported architecture.";
|
||||
|
||||
sha256 =
|
||||
if circuitsHashes ? ${system} then
|
||||
circuitsHashes.${system}
|
||||
else
|
||||
throw "logos-blockchain-circuits ${circuitsVersion} does not support ${system}.";
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
pname = "logos-blockchain-circuits";
|
||||
@ -59,7 +63,7 @@
|
||||
url =
|
||||
"${githubBase}/v${circuitsVersion}"
|
||||
+ "/logos-blockchain-circuits-v${circuitsVersion}-${os}-${arch}.tar.gz";
|
||||
sha256 = circuitsHashes.${system};
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
@ -70,6 +74,10 @@
|
||||
meta = {
|
||||
platforms = [ system ];
|
||||
};
|
||||
|
||||
passthru = {
|
||||
version = circuitsVersion;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
aarch64-darwin = "sha256-FbLgrHaa8djFEaA69WpZMB3uozkLT/abQiCWKrkzcsk=";
|
||||
x86_64-windows = "sha256-VOBUXlXNHTY0l91G+B1vybDfES0Y0HXhUytJIfFEiBA=";
|
||||
};
|
||||
"0.4.0" = {
|
||||
"0.4.1" = {
|
||||
x86_64-linux = "sha256-Oi3xhqm5Sd4PaCSHWMvsJm2YPtSlm11BBG99xG30tiM=";
|
||||
aarch64-linux = "sha256-8lsgqflHXPP6mnxILpUCNhetpVeDNOXiQlWKoZLHa7I=";
|
||||
aarch64-darwin = "sha256-E+yMjJPMy08jbiHLlDmDvlKnGJ4UiIRKB9GGZ0JGBB8=";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user