From 8cb043ccde629799a06f025206ce5403fd2f08e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Tue, 13 Jan 2026 10:32:17 +0100 Subject: [PATCH] Add spacedrive v2 --- home/misc/everything.nix | 1 + overlays/default.nix | 2 +- overlays/spacedrive.nix | 12 ++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/home/misc/everything.nix b/home/misc/everything.nix index a504d79..aa9bfd2 100644 --- a/home/misc/everything.nix +++ b/home/misc/everything.nix @@ -23,6 +23,7 @@ onlyoffice-desktopeditors # libreoffice alternative speedcrunch # GUI calculator app calibre # eBook Manager + spacedrive-v2 cider-2 # Apple music player fractal # Matrix client diff --git a/overlays/default.nix b/overlays/default.nix index aae2a0a..c32d3cc 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -15,7 +15,7 @@ }; in overlayFn { - inherit inputs; + inherit inputs lib; channels = { nixpkgs = final; diff --git a/overlays/spacedrive.nix b/overlays/spacedrive.nix index 45bc4bf..5c23ea2 100644 --- a/overlays/spacedrive.nix +++ b/overlays/spacedrive.nix @@ -3,10 +3,18 @@ lib, ... }: final: prev: { - spacedrive_v2 = channels.unstable.spacedrive.overrideAttrs (old: { + spacedrive-v2 = channels.unstable.spacedrive.overrideAttrs (old: { + version = "2.0.0-alpha.1"; src = prev.fetchurl { url = "https://github.com/spacedriveapp/spacedrive/releases/download/v2.0.0-alpha.1/Spacedrive-linux-x86_64.deb"; - hash = lib.fakeHash; + hash = "sha256-26qxNO17DTYQSYtH6aRy0PoNpb4BGeoZWOQWZtfV3IY="; }; + + buildInputs = + (old.buildInputs or []) + ++ (with channels.unstable; [ + libheif + ffmpeg_7-full.lib + ]); }); }