mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
matrix-appservice-slack: nixpkgs-fmt
This commit is contained in:
parent
6473d9ffb5
commit
0edddb8e11
@ -1,24 +1,25 @@
|
|||||||
{ pkgs, nodejs, stdenv, lib, ...}:
|
{ pkgs, nodejs, stdenv, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json)) ;
|
packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
|
||||||
|
|
||||||
nodePackages = import ./node-composition.nix {
|
nodePackages = import ./node-composition.nix {
|
||||||
inherit pkgs nodejs;
|
inherit pkgs nodejs;
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (stdenv.hostPlatform) system;
|
||||||
};
|
};
|
||||||
in nodePackages."${packageName}".override {
|
in
|
||||||
|
nodePackages."${packageName}".override {
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
makeWrapper '${nodejs}/bin/node' "$out/bin/matrix-appservice-slack" \
|
||||||
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
--add-flags "$out/lib/node_modules/matrix-appservice-slack/lib/app.js"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Matrix <--> Slack bridge";
|
description = "A Matrix <--> Slack bridge";
|
||||||
maintainers = with maintainers; [ kampka ];
|
maintainers = with maintainers; [ kampka ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user