nixpkgs-fmt

This commit is contained in:
778a69cd 2023-08-09 15:28:38 +02:00
parent 2c5b4ca3bc
commit 6deb3f4226
2 changed files with 34 additions and 30 deletions

View file

@ -3,23 +3,27 @@
inputs.nixpkgs.url = "github:erictapen/nixpkgs/mobilizon-3"; inputs.nixpkgs.url = "github:erictapen/nixpkgs/mobilizon-3";
outputs = { self, nixpkgs }: let outputs = { self, nixpkgs }:
pkgs = import nixpkgs { system = "x86_64-linux"; }; let
in { system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
packages.x86_64-linux.mobilizon = pkgs.callPackage ./. { packages.x86_64-linux.mobilizon = pkgs.callPackage ./. {
src = ./.; src = ./.;
mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend; mobilizon-js = self.packages.x86_64-linux.mobilizon-frontend;
}; };
packages.x86_64-linux.mobilizon-frontend = pkgs.callPackage ./js { packages.x86_64-linux.mobilizon-frontend = pkgs.callPackage ./js { };
};
packages.x86_64-linux.default = self.packages.x86_64-linux.mobilizon; packages.x86_64-linux.default = self.packages.x86_64-linux.mobilizon;
devShells.x86_64-linux.default = let devShells.x86_64-linux.default =
let
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
in pkgs.mkShell { in
pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
elixir elixir
mix2nix mix2nix

View file

@ -1,4 +1,4 @@
{ lib, yarn, mkYarnPackage, imagemagick}: { lib, yarn, mkYarnPackage, imagemagick }:
mkYarnPackage rec { mkYarnPackage rec {
src = ./.; src = ./.;