mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #234506 from nielsegberts/master
filebrowser: init at 2.23.0
This commit is contained in:
commit
6a2a4d27b4
@ -11464,6 +11464,12 @@
|
||||
fingerprint = "E576 BFB2 CF6E B13D F571 33B9 E315 A758 4613 1564";
|
||||
}];
|
||||
};
|
||||
nielsegberts = {
|
||||
email = "nix@nielsegberts.nl";
|
||||
github = "nielsegberts";
|
||||
githubId = 368712;
|
||||
name = "Niels Egberts";
|
||||
};
|
||||
nigelgbanks = {
|
||||
name = "Nigel Banks";
|
||||
email = "nigel.g.banks@gmail.com";
|
||||
|
60
pkgs/applications/networking/filebrowser/default.nix
Normal file
60
pkgs/applications/networking/filebrowser/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{ buildGoModule, buildNpmPackage, fetchFromGitHub, lib }:
|
||||
|
||||
let
|
||||
frontend = buildNpmPackage rec {
|
||||
pname = "filebrowser-frontend";
|
||||
version = "2.23.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "filebrowser";
|
||||
repo = "filebrowser";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
|
||||
};
|
||||
|
||||
sourceRoot = "source/frontend";
|
||||
|
||||
npmDepsHash = "sha256-acNIMKHc4q7eiFLPBtKZBNweEsrt+//0VR6dqwXHTvA=";
|
||||
|
||||
NODE_OPTIONS = "--openssl-legacy-provider";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
mv dist $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "filebrowser";
|
||||
version = "2.23.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "filebrowser";
|
||||
repo = "filebrowser";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-MR0ju2Nomb3j78Z+1YcJY+jPd40MZpuOTuQJM94AM8A=";
|
||||
|
||||
excludedPackages = [ "tools" ];
|
||||
|
||||
preBuild = ''
|
||||
cp -r ${frontend}/dist frontend/
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit frontend;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Filebrowser is a web application for managing files and directories";
|
||||
homepage = "https://filebrowser.org";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nielsegberts ];
|
||||
};
|
||||
}
|
@ -31820,6 +31820,8 @@ with pkgs;
|
||||
|
||||
irssi = callPackage ../applications/networking/irc/irssi { };
|
||||
|
||||
filebrowser = callPackage ../applications/networking/filebrowser { };
|
||||
|
||||
fish-irssi = callPackage ../applications/networking/irc/irssi/fish { };
|
||||
|
||||
kirc = callPackage ../applications/networking/irc/kirc { };
|
||||
|
Loading…
Reference in New Issue
Block a user