uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
39
pkgs/servers/web-apps/bookstack/default.nix
Normal file
39
pkgs/servers/web-apps/bookstack/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ pkgs, stdenv, lib, fetchFromGitHub, dataDir ? "/var/lib/bookstack" }:
|
||||
|
||||
let
|
||||
package = (import ./composition.nix {
|
||||
inherit pkgs;
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
noDev = true; # Disable development dependencies
|
||||
}).overrideAttrs (attrs : {
|
||||
installPhase = attrs.installPhase + ''
|
||||
rm -R $out/storage $out/public/uploads
|
||||
ln -s ${dataDir}/.env $out/.env
|
||||
ln -s ${dataDir}/storage $out/storage
|
||||
ln -s ${dataDir}/public/uploads $out/public/uploads
|
||||
'';
|
||||
});
|
||||
|
||||
in package.override rec {
|
||||
pname = "bookstack";
|
||||
version = "21.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bookstackapp";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1bfwpvawa3pxpdsdbi3nxpjpdv2z1jmv7nk6cs9gs0210jlairsz";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A platform to create documentation/wiki content built with PHP & Laravel";
|
||||
longDescription = ''
|
||||
A platform for storing and organising information and documentation.
|
||||
Details for BookStack can be found on the official website at https://www.bookstackapp.com/.
|
||||
'';
|
||||
homepage = "https://www.bookstackapp.com/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ymarkus ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue