mirror of
https://codeberg.org/puppe/financier-nix.git
synced 2025-12-20 00:12:17 +01:00
Formatting (nixfmt)
This commit is contained in:
parent
e71e35cb55
commit
c0fd2b96a5
6 changed files with 32 additions and 41 deletions
13
default.nix
13
default.nix
|
|
@ -1,13 +1,8 @@
|
|||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem}:
|
||||
{ pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem
|
||||
}:
|
||||
|
||||
let
|
||||
derivations = import ./node2nix.nix {
|
||||
inherit pkgs system;
|
||||
};
|
||||
in
|
||||
derivations // {
|
||||
let derivations = import ./node2nix.nix { inherit pkgs system; };
|
||||
in derivations // {
|
||||
package = derivations.package.overrideAttrs (oldAttrs: rec {
|
||||
# Puppeteer (a dependency for testing) would try to download Chromium
|
||||
# during installation. Downloading Chromium would not work though because
|
||||
|
|
|
|||
9
dist.nix
9
dist.nix
|
|
@ -1,14 +1,11 @@
|
|||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem}:
|
||||
{ pkgs ? import <nixpkgs> { inherit system; }, system ? builtins.currentSystem
|
||||
}:
|
||||
|
||||
let
|
||||
financier = (import ./default.nix { inherit pkgs system; }).package;
|
||||
meta = import ./meta.nix;
|
||||
|
||||
in
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
inherit (meta) version;
|
||||
pname = "financier-dist";
|
||||
src = "${financier}/lib/node_modules/financier";
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ with lib;
|
|||
let
|
||||
cfg = config.services.financier;
|
||||
financier-dist = import ./dist.nix { inherit pkgs system; };
|
||||
in
|
||||
{
|
||||
imports = [];
|
||||
in {
|
||||
imports = [ ];
|
||||
|
||||
options.services.financier = {
|
||||
enable = mkEnableOption "Financier";
|
||||
|
|
|
|||
14
shell.nix
14
shell.nix
|
|
@ -1,14 +1,14 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
let
|
||||
meta = import ./meta.nix;
|
||||
src = (import ./helpers.nix).fetchFinancier { inherit (pkgs) fetchgit; inherit meta; };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
src = (import ./helpers.nix).fetchFinancier {
|
||||
inherit (pkgs) fetchgit;
|
||||
inherit meta;
|
||||
};
|
||||
in pkgs.mkShell {
|
||||
shellHook = ''
|
||||
export FINANCIER_SRC="${src}"
|
||||
export FINANCIER_NODE_VERSION="${meta.nodeVersion}"
|
||||
'';
|
||||
buildInputs = with pkgs; [
|
||||
nodePackages.node2nix
|
||||
];
|
||||
buildInputs = with pkgs; [ nodePackages.node2nix ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue