mobilizon/flake.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2023-03-15 21:57:31 +01:00
{
description = "Mobilizon fork for potsda.mn";
2023-03-15 21:57:31 +01:00
inputs = {
nixpkgs.url = "github:erictapen/nixpkgs/mobilizon-3";
nix-filter.url = "github:numtide/nix-filter";
};
2023-03-15 21:57:31 +01:00
outputs = { self, nixpkgs, nix-filter }:
2023-08-09 15:28:38 +02:00
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
filter = nix-filter.lib;
2023-08-09 15:28:38 +02:00
in
{
2023-03-15 21:57:31 +01:00
2023-08-09 15:28:38 +02:00
packages.x86_64-linux.mobilizon = pkgs.callPackage ./. {
src = filter {
root = ./.;
exclude = [ (filter.matchExt "nix") ];
};
2023-08-09 15:28:38 +02:00
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
};
2023-08-03 17:26:07 +02:00
packages.x86_64-linux.mobilizon-frontend = pkgs.callPackage ./js { inherit filter; };
2023-03-15 21:57:31 +01:00
2023-08-09 15:28:38 +02:00
packages.x86_64-linux.default = self.packages.x86_64-linux.mobilizon;
2023-03-15 21:57:31 +01:00
2023-08-09 15:28:38 +02:00
devShells.x86_64-linux.default =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
pkgs.mkShell {
buildInputs = with pkgs; [
elixir
mix2nix
cmake
imagemagick
(yarn.override {
nodejs = nodejs-18_x;
})
yarn2nix
nodejs-18_x
];
};
2023-03-15 21:57:31 +01:00
2023-08-09 15:28:38 +02:00
};
2023-03-15 21:57:31 +01:00
}