fix formatting
This commit is contained in:
+4
-4
@@ -231,8 +231,9 @@ in
|
|||||||
|
|
||||||
programs.nix-ld = {
|
programs.nix-ld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
libraries = options.programs.nix-ld.libraries.default ++ (
|
libraries =
|
||||||
with pkgs; [
|
options.programs.nix-ld.libraries.default
|
||||||
|
++ (with pkgs; [
|
||||||
dbus # libdbus-1.so.3
|
dbus # libdbus-1.so.3
|
||||||
fontconfig # libfontconfig.so.1
|
fontconfig # libfontconfig.so.1
|
||||||
freetype # libfreetype.so.6
|
freetype # libfreetype.so.6
|
||||||
@@ -241,8 +242,7 @@ in
|
|||||||
libxkbcommon # libxkbcommon.so.0
|
libxkbcommon # libxkbcommon.so.0
|
||||||
libx11 # libX11.so.6
|
libx11 # libX11.so.6
|
||||||
wayland
|
wayland
|
||||||
]
|
]);
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
samrewritten = final.callPackage ./package.nix {};
|
samrewritten = final.callPackage ./package.nix { };
|
||||||
})
|
})
|
||||||
yazi.overlays.default
|
yazi.overlays.default
|
||||||
millennium.overlays.default
|
millennium.overlays.default
|
||||||
|
|||||||
-71
@@ -1,71 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
rustPlatform,
|
|
||||||
fetchFromGitHub,
|
|
||||||
nix-update-script,
|
|
||||||
# Deps
|
|
||||||
gdk-pixbuf,
|
|
||||||
glib,
|
|
||||||
graphene,
|
|
||||||
gtk4,
|
|
||||||
openssl,
|
|
||||||
pango,
|
|
||||||
pkg-config,
|
|
||||||
wrapGAppsHook4,
|
|
||||||
}:
|
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
|
||||||
pname = "samrewritten";
|
|
||||||
version = "1.4.5";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "PaulCombal";
|
|
||||||
repo = "SamRewritten";
|
|
||||||
tag = "v${finalAttrs.version}";
|
|
||||||
hash = "sha256-sSZC7yN/WuMYkdcPmHyvasaWRFzppSxmlS1bYLZGvyM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoHash = "sha256-YKiICPP6z9lZWqdoPOYRq+0mmz7jY3/eJd7XzN8Vmnk=";
|
|
||||||
|
|
||||||
# Tests require network access and a running Steam client. Skipping.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
glib
|
|
||||||
pkg-config
|
|
||||||
wrapGAppsHook4
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
gdk-pixbuf
|
|
||||||
glib
|
|
||||||
graphene
|
|
||||||
gtk4
|
|
||||||
openssl
|
|
||||||
pango
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
install -Dm644 assets/org.samrewritten.SamRewritten.gschema.xml \
|
|
||||||
$out/share/glib-2.0/schemas/org.samrewritten.SamRewritten.gschema.xml
|
|
||||||
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
||||||
cat package/samrewritten.desktop
|
|
||||||
substituteInPlace package/samrewritten.desktop \
|
|
||||||
--replace-fail "Exec=/usr/bin/samrewritten" "Exec=samrewritten"
|
|
||||||
install -Dm644 package/samrewritten.desktop \
|
|
||||||
$out/share/applications/samrewritten.desktop
|
|
||||||
'';
|
|
||||||
|
|
||||||
env.PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
|
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Modern Steam achievements manager for Windows and Linux";
|
|
||||||
mainProgram = "samrewritten";
|
|
||||||
homepage = "https://github.com/PaulCombal/SamRewritten";
|
|
||||||
changelog = "https://github.com/PaulCombal/SamRewritten/releases";
|
|
||||||
license = lib.licenses.gpl3Only;
|
|
||||||
maintainers = with lib.maintainers; [ ludovicopiero ];
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user