WIP: jepsen.garage nixos test #725
2 changed files with 5611 additions and 0 deletions
14
flake.nix
14
flake.nix
|
@ -54,6 +54,20 @@
|
|||
i386 = packageFor "i686-unknown-linux-musl";
|
||||
arm64 = packageFor "aarch64-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 ----
|
||||
|
|
5597
script/jepsen.garage/deps.nix
Normal file
5597
script/jepsen.garage/deps.nix
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue