forked from potsda.mn/mobilizon
nix: remove some unneeded dependencies, polishing
This commit is contained in:
parent
435cbd0d6b
commit
d1a2b4acb3
19
default.nix
19
default.nix
|
@ -2,7 +2,6 @@
|
||||||
lib,
|
lib,
|
||||||
beam_nox,
|
beam_nox,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
git,
|
|
||||||
cmake,
|
cmake,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
src,
|
src,
|
||||||
|
@ -11,7 +10,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (beam_nox.packages.erlang) mixRelease buildMix;
|
inherit (beam_nox.packages.erlang) mixRelease buildMix elixir;
|
||||||
in
|
in
|
||||||
mixRelease rec {
|
mixRelease rec {
|
||||||
pname = "mobilizon";
|
pname = "mobilizon";
|
||||||
|
@ -22,15 +21,6 @@ mixRelease rec {
|
||||||
|
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
# See https://github.com/whitfin/cachex/issues/205
|
|
||||||
# This circumvents a startup error for now
|
|
||||||
stripDebug = false;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
git
|
|
||||||
cmake
|
|
||||||
];
|
|
||||||
|
|
||||||
# Update deps.nix by running `mix deps.nix`
|
# Update deps.nix by running `mix deps.nix`
|
||||||
mixNixDeps = import ./deps.nix {
|
mixNixDeps = import ./deps.nix {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
|
@ -60,9 +50,8 @@ mixRelease rec {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
# fix elixir locale warning
|
||||||
export LANG=C.UTF-8 # fix elixir locale warning
|
env.LANG = "C.UTF-8";
|
||||||
'';
|
|
||||||
|
|
||||||
# Install the compiled js part
|
# Install the compiled js part
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -84,7 +73,7 @@ mixRelease rec {
|
||||||
ln -s ${ex_cldr.src}/priv/cldr/locales $out/lib/ex_cldr-${ex_cldr.version}/priv/cldr/locales
|
ln -s ${ex_cldr.src}/priv/cldr/locales $out/lib/ex_cldr-${ex_cldr.version}/priv/cldr/locales
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.elixirPackage = beam_nox.packages.erlang.elixir;
|
passthru.elixirPackage = elixir;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Mobilizon is an online tool to help manage your events, your profiles and your groups";
|
description = "Mobilizon is an online tool to help manage your events, your profiles and your groups";
|
||||||
|
|
Loading…
Reference in a new issue