Skip to content

Commit

Permalink
style(memcached): Follow formatting convention
Browse files Browse the repository at this point in the history
  • Loading branch information
secobarbital committed Sep 7, 2024
1 parent 63084ed commit 64a1eaa
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 59 deletions.
7 changes: 1 addition & 6 deletions nix/services/memcached.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Based on https://github.com/cachix/devenv/blob/main/src/modules/services/memcached.nix
{ pkgs
, lib
, name
, config
, ...
}:
{ pkgs, lib, name, config, ... }:
let
inherit (lib) types;
in
Expand Down
94 changes: 41 additions & 53 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,52 @@
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
services-flake.url = "github:juspay/services-flake";
};
outputs =
inputs:
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [
inputs.process-compose-flake.flakeModule
./nix/pkgs.nix
];
perSystem =
{ self'
, inputs'
, pkgs
, system
, lib
, ...
}:
{
process-compose =
let
mkPackageFor =
mod:
let
# Derive name from filename
name = lib.pipe mod [
builtins.baseNameOf
(builtins.match "(.*)_test.nix")
builtins.head
];
in
lib.nameValuePair name {
imports = [
inputs.services-flake.processComposeModules.default
mod
];
};
in
builtins.listToAttrs (
builtins.map mkPackageFor ([
"${inputs.services-flake}/nix/services/apache-kafka_test.nix"
"${inputs.services-flake}/nix/services/clickhouse/clickhouse_test.nix"
"${inputs.services-flake}/nix/services/elasticsearch_test.nix"
"${inputs.services-flake}/nix/services/grafana_test.nix"
"${inputs.services-flake}/nix/services/memcached_test.nix"
"${inputs.services-flake}/nix/services/nginx/nginx_test.nix"
"${inputs.services-flake}/nix/services/ollama_test.nix"
"${inputs.services-flake}/nix/services/open-webui_test.nix"
"${inputs.services-flake}/nix/services/postgres/postgres_test.nix"
"${inputs.services-flake}/nix/services/redis_test.nix"
"${inputs.services-flake}/nix/services/redis-cluster_test.nix"
"${inputs.services-flake}/nix/services/searxng_test.nix"
"${inputs.services-flake}/nix/services/zookeeper_test.nix"
"${inputs.services-flake}/nix/services/prometheus_test.nix"
"${inputs.services-flake}/nix/services/pgadmin_test.nix"
"${inputs.services-flake}/nix/services/tempo_test.nix"
"${inputs.services-flake}/nix/services/weaviate_test.nix"
"${inputs.services-flake}/nix/services/tika_test.nix"
])
);
};
perSystem = { self', inputs', pkgs, system, lib, ... }: {
process-compose =
let
mkPackageFor = mod:
let
# Derive name from filename
name = lib.pipe mod [
builtins.baseNameOf
(builtins.match "(.*)_test.nix")
builtins.head
];
in
lib.nameValuePair name {
imports = [
inputs.services-flake.processComposeModules.default
mod
];
};
in
builtins.listToAttrs (builtins.map mkPackageFor ([
"${inputs.services-flake}/nix/services/apache-kafka_test.nix"
"${inputs.services-flake}/nix/services/clickhouse/clickhouse_test.nix"
"${inputs.services-flake}/nix/services/elasticsearch_test.nix"
"${inputs.services-flake}/nix/services/grafana_test.nix"
"${inputs.services-flake}/nix/services/nginx/nginx_test.nix"
"${inputs.services-flake}/nix/services/ollama_test.nix"
"${inputs.services-flake}/nix/services/open-webui_test.nix"
"${inputs.services-flake}/nix/services/postgres/postgres_test.nix"
"${inputs.services-flake}/nix/services/redis_test.nix"
"${inputs.services-flake}/nix/services/redis-cluster_test.nix"
"${inputs.services-flake}/nix/services/searxng_test.nix"
"${inputs.services-flake}/nix/services/zookeeper_test.nix"
"${inputs.services-flake}/nix/services/prometheus_test.nix"
"${inputs.services-flake}/nix/services/pgadmin_test.nix"
"${inputs.services-flake}/nix/services/tempo_test.nix"
"${inputs.services-flake}/nix/services/weaviate_test.nix"
"${inputs.services-flake}/nix/services/tika_test.nix"
"${inputs.services-flake}/nix/services/memcached_test.nix"
]));
};
};
}

0 comments on commit 64a1eaa

Please sign in to comment.