Switch darktable to unstable channel

So i can get on the 5.4 release.
This commit is contained in:
Alexander Wainwright
2025-12-26 14:44:50 +10:00
parent 94b8527445
commit 7e360aa4a1
3 changed files with 27 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
{ config, pkgs, inputs, ... }:
let
unstable = import inputs.nixpkgs-unstable {
system = pkgs.system;
config.allowUnfree = true;
};
in
{
home.packages = with pkgs; [
foliate
@@ -18,14 +24,14 @@
(symlinkJoin {
name = "darktable";
paths = [ darktable ];
paths = [ unstable.darktable ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
# Remove the symlink to the original binary
rm $out/bin/darktable
# Create a wrapper that points to the cached original
makeWrapper ${darktable}/bin/darktable $out/bin/darktable \
makeWrapper ${unstable.darktable}/bin/darktable $out/bin/darktable \
--set GDK_BACKEND wayland
'';
})

19
flake.lock generated
View File

@@ -74,6 +74,22 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1766651565,
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1765838191,
@@ -94,7 +110,8 @@
"inputs": {
"home-manager": "home-manager",
"locutus": "locutus",
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable"
}
},
"systems": {

View File

@@ -4,6 +4,7 @@
inputs = {
# NixOS official package source
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
# The `follows` keyword in inputs is used for inheritance.