Unverified Commit 821e0dad authored by Austin Horstman's avatar Austin Horstman Committed by GitHub
Browse files

samrewritten: 20251229.1 -> 1.2.3 (#506021)

parents 71546f50 d054b4f5
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,

  # Deps
  gdk-pixbuf,
  glib,
@@ -16,21 +15,22 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "samrewritten";
  version = "20251229.1";
  version = "1.2.3";

  src = fetchFromGitHub {
    owner = "PaulCombal";
    repo = "SamRewritten";
    tag = finalAttrs.version;
    hash = "sha256-E5/h14QnAAkZOrFmrXo457t1cPPNnRTka+CJ1Psor7A=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-UHq09i0f7tLgAMIEA+GrLqKxzdsFmUrp3iIGAM+MXJ0=";
  };

  cargoHash = "sha256-7FVjWiNzAQTN9ITmdoRZaQRnwg+epJyphil1e8QAHfo=";
  cargoHash = "sha256-jPCF+wIb+DESph5dtF80NV7ydxWm09BQyf4eO2BKmNI=";

  # Tests require network access and a running Steam client. Skipping.
  doCheck = false;

  nativeBuildInputs = [
    glib
    pkg-config
    wrapGAppsHook4
  ];
@@ -44,6 +44,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
    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
  '';

  env.PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";

  passthru.updateScript = nix-update-script { };