cassandra: format
This commit is contained in:
@@ -1,22 +1,34 @@
|
||||
{ lib, stdenv, fetchurl, python, makeWrapper, gawk, bash, getopt, procps
|
||||
, which, jre, coreutils, nixosTests
|
||||
# generation is the attribute version suffix such as 3_11 in pkgs.cassandra_3_11
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, python
|
||||
, makeWrapper
|
||||
, gawk
|
||||
, bash
|
||||
, getopt
|
||||
, procps
|
||||
, which
|
||||
, jre
|
||||
, coreutils
|
||||
, nixosTests
|
||||
# generation is the attribute version suffix such as 3_11 in pkgs.cassandra_3_11
|
||||
, generation
|
||||
, version, sha256
|
||||
, extraMeta ? {}
|
||||
, version
|
||||
, sha256
|
||||
, extraMeta ? { }
|
||||
, ...
|
||||
}:
|
||||
|
||||
let
|
||||
libPath = lib.makeLibraryPath [ stdenv.cc.cc ];
|
||||
binPath = with lib; makeBinPath ([
|
||||
binPath = with lib; makeBinPath [
|
||||
bash
|
||||
getopt
|
||||
gawk
|
||||
which
|
||||
jre
|
||||
procps
|
||||
]);
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -90,13 +102,14 @@ stdenv.mkDerivation rec {
|
||||
wrapProgram $out/bin/cqlsh --prefix PATH : ${python}/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests =
|
||||
let
|
||||
test = nixosTests."cassandra_${generation}";
|
||||
in {
|
||||
in
|
||||
{
|
||||
nixos =
|
||||
assert test.testPackage.version == version;
|
||||
test;
|
||||
|
||||
Reference in New Issue
Block a user