14 src = fetchFromGitHub {
15 owner = "garethgeorge";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-qxEZkRKkwKZ+EZ3y3aGcX2ioKOz19SRdi3+9mjF1LpE=";
21 frontend = buildNpmPackage {
23 pname = "${pname}-webui";
26 npmDepsHash = "sha256-mS8G3+JuASaOkAYi+vgWztrSIIu7vfaasu+YeRJjWZw=";
37 inherit pname src version;
39 vendorHash = "sha256-YukcHnXa/QimfX3nDtQI6yfPkEK9j5SPXOPIT++eWsU=";
43 cp -r ${frontend}/* ./webui/dist
46 nativeCheckInputs = [ util-linux ];
52 "TestServeIndex" # Fails with handler returned wrong content encoding
54 ++ lib.optionals stdenv.isDarwin [
55 "TestBackup" # relies on ionice
58 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
61 # Use restic from nixpkgs, otherwise download fails in sandbox
62 export BACKREST_RESTIC_COMMAND="${restic}/bin/restic"
67 description = "Web UI and orchestrator for restic backup";
68 homepage = "https://github.com/garethgeorge/backrest";
69 changelog = "https://github.com/garethgeorge/backrest/releases/tag/v${version}";
70 license = lib.licenses.gpl3Only;
71 maintainers = with lib.maintainers; [ interdependence ];
72 mainProgram = "backrest";
73 platforms = lib.platforms.unix;