nixpkgs/pkgs/by-name/ne/nexusmods-app/update.bash
Victor Engmark 59255b36ac
nexusmods-app: init at 0.4.1
Closes #270358.

Name recommended by @erri120
<https://github.com/NixOS/nixpkgs/pull/270372#issuecomment-2147052607>.

Replaces the `7zz` binary executable included with the upstream project
for safety and reproducibility.

Requires an `enableUnfree = true` override to support RAR format mods.

Disables tests marked as requiring networking (actually requiring Nexus
Mods API key according to
<https://github.com/Nexus-Mods/NexusMods.App/pull/1222#issuecomment-2060687094>),
and one other tests which requires networking.

Co-Authored-By: Matej Cotman <matej@matejc.com>
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-06-06 17:44:51 +12:00

10 lines
239 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=./. -i bash -p nix-update
#shellcheck shell=bash
set -o errexit -o nounset -o pipefail
package=nexusmods-app
nix-update "$package"
"$(nix-build --attr "$package".fetch-deps --no-out-link)"