Compare commits
2 commits
240ba11c28
...
6ecd282976
Author | SHA1 | Date | |
---|---|---|---|
Patrick | 6ecd282976 | ||
Patrick | b27591a97d |
|
@ -16,9 +16,9 @@
|
|||
mkDefault
|
||||
;
|
||||
|
||||
package = cfg.package.override {
|
||||
package = "${cfg.package.override {
|
||||
inherit (cfg) dataDir;
|
||||
};
|
||||
}}/share/php/firefly-iii";
|
||||
in {
|
||||
options.services.firefly-iii = {
|
||||
enable = mkEnableOption "firefly-iii";
|
||||
|
|
|
@ -1,20 +1,25 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchurl,
|
||||
dataDir ? "/var/lib/firefly-iii",
|
||||
php83,
|
||||
fetchFromGitHub,
|
||||
buildNpmPackage,
|
||||
}: let
|
||||
version = "6.1.13";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/firefly-iii/firefly-iii/releases/download/v${version}/FireflyIII-v${version}.tar.gz";
|
||||
hash = "sha256-uQzk3pgdZ0baqmBouHfcuzrymwrsDy6b4IwSY3br6f0=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "firefly-iii";
|
||||
repo = "firefly-iii";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-85zI8uCyyoCflzxDkvba6FWa9B3kh179DJfQ2Um6MGM=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
frontend = buildNpmPackage {
|
||||
inherit src version;
|
||||
pname = "firefly-iii";
|
||||
sourceRoot = ".";
|
||||
npmDepsHash = "sha256-wuPUE6XuzzgKjpxZVgwh2wGut15M61WSBFG+YIZwOFM=";
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
rm -rf ./node_modules
|
||||
cp -r ./ $out
|
||||
mkdir -p $out/storage
|
||||
cp -r ./ $out
|
||||
rm -Rf $out/storage
|
||||
|
@ -22,6 +27,13 @@ in
|
|||
rm -Rf $out/bootstrap/cache
|
||||
ln -fs ${dataDir}/bootstrap/cache $out/bootstrap/cache
|
||||
'';
|
||||
};
|
||||
in
|
||||
php83.buildComposerProject rec {
|
||||
inherit version;
|
||||
src = frontend;
|
||||
pname = "firefly-iii";
|
||||
vendorHash = "sha256-CVGKyyLp5hjjpEulDNEYfljU4OgPBaFcYQQAUf6GeGs=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Firefly III: a personal finances manager";
|
||||
|
|
|
@ -16,7 +16,7 @@ rustPlatform.buildRustPackage rec {
|
|||
cargoHash = "sha256-BMy9Shy9KAx5+VbvH2WaA0wMFUNM5dqU/dssUNE1NWY=";
|
||||
postInstall = ''
|
||||
substituteInPlace zsh-histdb-skim-vendored.zsh \
|
||||
--replace "zsh-histdb-skim" "$out/bin/zsh-histdb-skim"
|
||||
--replace-fail "zsh-histdb-skim" "$out/bin/zsh-histdb-skim"
|
||||
cp zsh-histdb-skim-vendored.zsh $out/zsh-histdb-skim.plugin.zsh
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ stdenv.mkDerivation {
|
|||
};
|
||||
patchPhase = ''
|
||||
substituteInPlace "sqlite-history.zsh" "histdb-migrate" "histdb-merge" \
|
||||
--replace "sqlite3" "${sqlite}/bin/sqlite3"
|
||||
--replace-fail "sqlite3" "${sqlite}/bin/sqlite3"
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
programs.fzf.enable = true;
|
||||
|
||||
programs.carapace = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
# this would source all completers sadly some are worse than the builtin completers
|
||||
enableZshIntegration = false;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue