Compare commits
2 Commits
9b7c46d4a3
...
548b3d1579
| Author | SHA1 | Date | |
|---|---|---|---|
| 548b3d1579 | |||
| 8f0205da63 |
6
flake.lock
generated
6
flake.lock
generated
@@ -1080,11 +1080,11 @@
|
||||
"nixpkgs": "nixpkgs_8"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1788435466,
|
||||
"narHash": "sha256-A6izbjMpkQpQxQDFHx5SXw5/1gwTTzO0Vz+1sjPTGdw=",
|
||||
"lastModified": 1791984735,
|
||||
"narHash": "sha256-qTgWYsCg/pi6wI1PM4lolldIUNhokvsalfYbyjfIoKk=",
|
||||
"owner": "AceSLS",
|
||||
"repo": "SLSsteam",
|
||||
"rev": "71021ad32e47ad4382717f63c53d2d06d44be3bd",
|
||||
"rev": "136f614f979d6038f7cee1bc6db5261539a5ac9e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
36
modules/features/sable/_sable.nix
Normal file
36
modules/features/sable/_sable.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{pkgs, ...}:
|
||||
# Sable is a Matrix client (a Cinny fork). It is not in nixpkgs and upstream
|
||||
# ships only prebuilt artifacts, so wrap the published AppImage rather than
|
||||
# building from source. Bump `version` and `hash` together on updates; the
|
||||
# hash can be regenerated with:
|
||||
# nix store prefetch-file --name sable.AppImage <url>
|
||||
let
|
||||
pname = "sable";
|
||||
version = "1.22.6";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/SableClient/Sable/releases/download/v${version}/Sable-${version}-linux-x86_64.AppImage";
|
||||
hash = "sha256-DFZZrdwSF/jrlrRQ9gWguDe7AOQVMablEUcD1l3Giic=";
|
||||
};
|
||||
|
||||
contents = pkgs.appimageTools.extract {inherit pname version src;};
|
||||
in
|
||||
pkgs.appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
install -Dm444 ${contents}/${pname}.desktop \
|
||||
$out/share/applications/${pname}.desktop
|
||||
cp -r ${contents}/usr/share/icons $out/share/ 2>/dev/null || true
|
||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||
--replace-quiet 'Exec=AppRun' 'Exec=${pname}' \
|
||||
--replace-quiet 'Exec=sable' 'Exec=${pname}'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Matrix client focused on quality-of-life features (Cinny fork)";
|
||||
homepage = "https://sable.moe";
|
||||
platforms = ["x86_64-linux"];
|
||||
mainProgram = pname;
|
||||
};
|
||||
}
|
||||
12
modules/features/sable/default.nix
Normal file
12
modules/features/sable/default.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
self,
|
||||
moduleWithSystem,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.sable = moduleWithSystem ({self', ...}: {
|
||||
environment.systemPackages = with self'.packages; [sable];
|
||||
});
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages.sable = pkgs.callPackage ./_sable.nix {};
|
||||
};
|
||||
}
|
||||
@@ -16,6 +16,7 @@
|
||||
davinci
|
||||
sddm-autologin
|
||||
nix-ld
|
||||
sable
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user