mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/firebird: updated firebird package
This commit is contained in:
parent
69ccec4c72
commit
97d9e7849b
1 changed files with 16 additions and 10 deletions
|
@ -43,17 +43,15 @@ in
|
||||||
enable = mkEnableOption "the Firebird super server";
|
enable = mkEnableOption "the Firebird super server";
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
default = pkgs.firebirdSuper;
|
default = pkgs.firebird;
|
||||||
defaultText = "pkgs.firebirdSuper";
|
defaultText = "pkgs.firebird";
|
||||||
type = types.package;
|
type = types.package;
|
||||||
/*
|
example = ''
|
||||||
Example: <code>package = pkgs.firebirdSuper.override { icu =
|
<code>package = pkgs.firebird_3;</code>
|
||||||
pkgs.icu; };</code> which is not recommended for compatibility
|
'';
|
||||||
reasons. See comments at the firebirdSuper derivation
|
|
||||||
*/
|
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
Which firebird derivation to use.
|
Which Firebird package to be installed: <code>pkgs.firebird_3</code>
|
||||||
|
For SuperServer use override: <code>pkgs.firebird_3.override { superServer = true; };</code>
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -74,7 +72,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
baseDir = mkOption {
|
baseDir = mkOption {
|
||||||
default = "/var/db/firebird"; # ubuntu is using /var/lib/firebird/2.1/data/.. ?
|
default = "/var/lib/firebird";
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = ''
|
description = ''
|
||||||
Location containing data/ and system/ directories.
|
Location containing data/ and system/ directories.
|
||||||
|
@ -111,6 +109,14 @@ in
|
||||||
cp ${firebird}/security2.fdb "${systemDir}"
|
cp ${firebird}/security2.fdb "${systemDir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! test -e "${systemDir}/security3.fdb"; then
|
||||||
|
cp ${firebird}/security3.fdb "${systemDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! test -e "${systemDir}/security4.fdb"; then
|
||||||
|
cp ${firebird}/security4.fdb "${systemDir}"
|
||||||
|
fi
|
||||||
|
|
||||||
chmod -R 700 "${dataDir}" "${systemDir}" /var/log/firebird
|
chmod -R 700 "${dataDir}" "${systemDir}" /var/log/firebird
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue