2023-03-15 21:57:31 +01:00
|
|
|
{
|
2023-08-03 16:49:50 +02:00
|
|
|
description = "Mobilizon fork for potsda.mn";
|
2023-03-15 21:57:31 +01:00
|
|
|
|
2023-05-16 00:24:01 +02:00
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-03-15 21:57:31 +01:00
|
|
|
|
2023-08-03 16:59:12 +02:00
|
|
|
outputs = { self, nixpkgs }: let
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
|
|
in {
|
2023-03-15 21:57:31 +01:00
|
|
|
|
2023-08-03 17:26:07 +02:00
|
|
|
packages.x86_64-linux.mobilizon = pkgs.callPackage ./. {
|
|
|
|
src = ./.;
|
|
|
|
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
|
|
|
|
};
|
|
|
|
|
|
|
|
packages.x86_64-linux.mobilizon-frontend = pkgs.callPackage ./js {
|
|
|
|
};
|
2023-03-15 21:57:31 +01:00
|
|
|
|
2023-08-03 16:59:12 +02:00
|
|
|
packages.x86_64-linux.default = self.packages.x86_64-linux.mobilizon;
|
2023-03-15 21:57:31 +01:00
|
|
|
|
|
|
|
devShells.x86_64-linux.default = let
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
|
|
|
in pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
elixir
|
2023-05-16 00:24:01 +02:00
|
|
|
mix2nix
|
2023-03-15 21:57:31 +01:00
|
|
|
cmake
|
|
|
|
imagemagick
|
2023-04-04 23:53:52 +02:00
|
|
|
(yarn.override {
|
2023-08-03 16:49:50 +02:00
|
|
|
nodejs = nodejs-18_x;
|
2023-04-04 23:53:52 +02:00
|
|
|
})
|
2023-05-16 20:45:49 +02:00
|
|
|
yarn2nix
|
2023-08-03 16:49:50 +02:00
|
|
|
nodejs-18_x
|
2023-03-15 21:57:31 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|