add nix package jepsen-garage

This commit is contained in:
Yureka 2024-02-19 20:31:05 +01:00
parent b8bd784074
commit ce5bfc6c89
2 changed files with 5611 additions and 0 deletions

View file

@ -54,6 +54,20 @@
i386 = packageFor "i686-unknown-linux-musl"; i386 = packageFor "i686-unknown-linux-musl";
arm64 = packageFor "aarch64-unknown-linux-musl"; arm64 = packageFor "aarch64-unknown-linux-musl";
arm = packageFor "armv6l-unknown-linux-musl"; arm = packageFor "armv6l-unknown-linux-musl";
jepsen-garage = pkgs.callPackage (
{ runCommand, makeWrapper, fetchMavenArtifact, fetchgit, lib, clojure }:
let cljsdeps = import ./script/jepsen.garage/deps.nix { inherit (pkgs) fetchMavenArtifact fetchgit lib; };
classp = cljsdeps.makeClasspaths {};
in runCommand "jepsen.garage" {
nativeBuildInputs = [ makeWrapper ];
} ''
makeWrapper ${clojure}/bin/clojure $out/bin/jepsen.garage --add-flags "-Scp ${./script/jepsen.garage/src}:${classp} -m jepsen.garage"
''
) {};
}; };
# ---- developpment shell, for making native builds only ---- # ---- developpment shell, for making native builds only ----

File diff suppressed because it is too large Load diff