Unverified Commit abd6d48f authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #310859 from JohnRTitor/add-update-script

treewide: add update script to packages maintained by johnrtitor
parents 4b91ebb8 d95e9bf3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  unstableGitUpdater,
}:

stdenvNoCC.mkDerivation {
@@ -26,6 +27,10 @@ stdenvNoCC.mkDerivation {
    runHook postInstall
  '';

  passthru.updateScript = unstableGitUpdater {
    hardcodeZeroVersion = true;
  };

  meta = {
    homepage = "https://github.com/CachyOS/ananicy-rules";
    description = "CachyOS' ananicy-rules meant to be used with ananicy-cpp";
+12 −1
Original line number Diff line number Diff line
{ lib, stdenv, patchelf, makeWrapper, fetchurl
{ lib, stdenv, patchelf, makeWrapper, fetchurl, writeScript

# Linked dynamic libraries.
, glib, fontconfig, freetype, pango, cairo, libX11, libXi, atk, nss, nspr
@@ -142,6 +142,17 @@ in stdenv.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  passthru = {
    updateScript = writeScript "update-google-chrome.sh" ''
      #!/usr/bin/env nix-shell
      #!nix-shell -i bash -p curl jq common-updater-scripts
      url="https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions/all/releases"
      response=$(curl --silent $url)
      version=$(jq ".releases[0].version" --raw-output <<< "$response")
      update-source-version ${finalAttrs.pname} "$version" --ignore-same-hash
    '';
  };

  meta = {
    description = "A freeware web browser developed by Google";
    homepage = "https://www.google.com/chrome/browser/";
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:

rustPlatform.buildRustPackage rec {
@@ -37,6 +38,8 @@ rustPlatform.buildRustPackage rec {
    "--lib"
  ];

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

  meta = with lib; {
    description = "Extremely fast CSS parser, transformer, and minifier written in Rust";
    homepage = "https://lightningcss.dev/";
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  fetchFromGitHub,
  python3Packages,
  nix-update-script,
}:

python3Packages.buildPythonApplication rec {
@@ -57,6 +58,8 @@ python3Packages.buildPythonApplication rec {
    "pyprland.plugins.workspaces_follow_focus"
  ];

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

  meta = {
    mainProgram = "pypr";
    description = "An hyperland plugin system";
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@

# This is an updater for unstable packages that should always use the latest
# commit.
# To use this updater, add the following to your package set:
# passthru.updateScript = unstableGitUpdater { };
# relevant attributes can be passed as below:

{ url ? null # The git url, if empty it will be set to src.gitRepoUrl
, branch ? null
, hardcodeZeroVersion ? false # Use a made-up version "0" instead of latest tag. Use when there is no previous release, or the project's tagging system is incompatible with what we expect from versions
Loading