Unverified Commit ba122dfb authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

archisteamfarm: rename, move to by-name (#485695)

parents 56b7aa5d ed1d17fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ in
            description = "Whether to start the web-ui. This is the preferred way of configuring things such as the steam guard token.";
          };

          package = lib.mkPackageOption pkgs [ "ArchiSteamFarm" "ui" ] {
          package = lib.mkPackageOption pkgs [ "archisteamfarm" "ui" ] {
            extraDescription = ''
              ::: {.note}
              Contents must be in lib/dist
@@ -78,7 +78,7 @@ in
      description = "The Web-UI hosted on 127.0.0.1:1242.";
    };

    package = lib.mkPackageOption pkgs "ArchiSteamFarm" {
    package = lib.mkPackageOption pkgs "archisteamfarm" {
      extraDescription = ''
        ::: {.warning}
        Should always be the latest version, for security reasons,
+3 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ let
  ];
in
buildDotnetModule rec {
  pname = "ArchiSteamFarm";
  pname = "archisteamfarm";
  # nixpkgs-update: no auto update
  version = "6.3.1.6";

@@ -42,6 +42,7 @@ buildDotnetModule rec {
  testProjectFile = "ArchiSteamFarm.Tests";

  executable = "ArchiSteamFarm";
  installPath = "${placeholder "out"}/lib/ArchiSteamFarm";

  enableParallelBuilding = false;

@@ -95,7 +96,7 @@ buildDotnetModule rec {
  '';

  passthru = {
    # nix-shell maintainers/scripts/update.nix --argstr package ArchiSteamFarm
    # nix-shell maintainers/scripts/update.nix --argstr package archisteamfarm
    updateScript = ./update.sh;
    ui = callPackage ./web-ui { };
  };
+3 −3
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

new_version="$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s "https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases" | jq -r  'map(select(.prerelease == false)) | .[0].tag_name')"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./default.nix)"
old_version="$(sed -nE 's/\s*version = "(.*)".*/\1/p' ./package.nix)"

if [[ "$new_version" == "$old_version" ]]; then
  echo "Already up to date!"
@@ -17,10 +17,10 @@ asf_path=$PWD
cd ../../../..

if [[ "${1:-}" != "--deps-only" ]]; then
    update-source-version ArchiSteamFarm "$new_version"
    update-source-version archisteamfarm "$new_version"
fi

$(nix-build -A ArchiSteamFarm.fetch-deps --no-out-link)
$(nix-build -A archisteamfarm.fetch-deps --no-out-link)

cd "$asf_path/web-ui"
./update.sh
Loading