From 737a920c6667feca0bebe2f6729ad6ec505ffc3e Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 10 Mar 2023 12:49:45 +0100 Subject: [PATCH] Add SamRewritten as a custom derivation. --- .bauke/nix/stardust/packages.nix | 1 + .bauke/nix/stardust/samrewritten.nix | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .bauke/nix/stardust/samrewritten.nix diff --git a/.bauke/nix/stardust/packages.nix b/.bauke/nix/stardust/packages.nix index ec01b9f..35a9c7a 100644 --- a/.bauke/nix/stardust/packages.nix +++ b/.bauke/nix/stardust/packages.nix @@ -65,6 +65,7 @@ xfce.xfce4-timer-plugin xfce.xfce4-whiskermenu-plugin xorg.libXcursor + (callPackage ./samrewritten.nix { }) (wrapOBS { plugins = with obs-studio-plugins; [ input-overlay diff --git a/.bauke/nix/stardust/samrewritten.nix b/.bauke/nix/stardust/samrewritten.nix new file mode 100644 index 0000000..7ede6a0 --- /dev/null +++ b/.bauke/nix/stardust/samrewritten.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, curl +, glibmm +, gtkmm3 +, steam +, yajl +}: + +stdenv.mkDerivation rec { + pname = "SamRewritten"; + version = "202008"; + + src = fetchFromGitHub { + owner = "PaulCombal"; + repo = pname; + rev = version; + sha256 = "sha256-q3kDuZdnWw1Nfu3hVDD8XKJzbmwlx/lafJfhziVYKhw="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ curl glibmm gtkmm3 steam yajl ]; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Steam Achievement Manager For Linux. Rewritten in C++."; + homepage = "https://github.com/PaulCombal/SamRewritten"; + license = licenses.gpl3; + platforms = [ "x86_64-linux" ]; + }; +}