Add update scripts
This commit is contained in:
parent
d4454da40d
commit
c7de6235e0
16 changed files with 62 additions and 3 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -1,3 +1,8 @@
|
|||
# Local configuration
|
||||
local/
|
||||
*.local.nix
|
||||
|
||||
# Package updates
|
||||
/packages/*.cmp
|
||||
/*.log
|
||||
/update-git-commits.txt
|
||||
|
|
|
@ -63,6 +63,9 @@ overrideUntilVersion {
|
|||
off = { };
|
||||
zsh-click = { };
|
||||
} // {
|
||||
# Pending NixOS 23.05 (NixOS/nixpkgs#203371, NixOS/nixpkgs#207703)
|
||||
inherit (unstable) nix-update-script;
|
||||
|
||||
# Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1269895
|
||||
firefox = pkgs.firefox.overrideAttrs (wrapper: {
|
||||
buildCommand = wrapper.buildCommand + ''
|
||||
|
|
2
default.nix
Normal file
2
default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Used by ./tasks/update
|
||||
{}: import <nixpkgs> { overlays = [ (import ./common/packages.nix) ]; }
|
|
@ -1,18 +1,20 @@
|
|||
{ buildGoModule, fetchFromGitHub, lib }:
|
||||
{ buildGoModule, fetchFromGitHub, lib, unstableGitUpdater }:
|
||||
|
||||
buildGoModule {
|
||||
pname = "apex";
|
||||
version = "unstable-2021-12-08";
|
||||
version = "unstable-2021-12-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "imdatngo";
|
||||
repo = "apex";
|
||||
rev = "e7e72c478a580662b3609f1a43f0e75da62b6f9b";
|
||||
hash = "sha256-U65hXHfh7AUpqMLNQxCKYEovWx+JezdpYnoNvv7apEc=";
|
||||
hash = "sha256-AzH1rZFqEH8sovZZfJykvsEmCedEZWigQFHWHl6/PdE=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-i0+EETYoDnkKTjj9Qi8nUir4iip4mQx9uIrMkY+hbDc=";
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Apex lets you build, deploy, and manage AWS Lambda functions with ease.";
|
||||
homepage = "https://github.com/apex/apex";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ fetchCrate
|
||||
, lib
|
||||
, nix-update-script
|
||||
, rustPlatform
|
||||
|
||||
# Dependencies
|
||||
|
@ -19,6 +20,8 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
nativeBuildInputs = [ nasm ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "AVIF image creator in pure Rust";
|
||||
homepage = "https://github.com/kornelski/cavif-rs";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, makeWrapper
|
||||
, stdenv
|
||||
, unstableGitUpdater
|
||||
|
||||
# Dependencies
|
||||
, jre
|
||||
|
@ -30,6 +31,8 @@ stdenv.mkDerivation rec {
|
|||
wrapProgram $out/bin/${pname} --prefix PATH : ${lib.makeBinPath [ jre ]}
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Automated decompilation of Minecraft";
|
||||
homepage = "https://github.com/hube12/DecompilerMC";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ fetchCrate
|
||||
, lib
|
||||
, nix-update-script
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
|
@ -14,6 +15,8 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoHash = "sha256-o41gp5WBH/rUROTqMAGiLKiAP5WAPrAs2CYJeDjKJRM=";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "tools built with fastnbt";
|
||||
homepage = "https://github.com/owengage/fastnbt";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
, lib
|
||||
, makeWrapper
|
||||
, stdenv
|
||||
, unstableGitUpdater
|
||||
|
||||
# Dependencies
|
||||
, bash
|
||||
|
@ -61,6 +62,8 @@ stdenv.mkDerivation {
|
|||
diff-image $src/example-comparison.png $src/example-comparison.png
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "An extension to 'git diff' that provides support for diffing images.";
|
||||
homepage = "https://github.com/ewanmellor/git-diff-image";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ fetchFromGitHub
|
||||
, lib
|
||||
, stdenv
|
||||
, unstableGitUpdater
|
||||
|
||||
# Dependencies
|
||||
, python3
|
||||
|
@ -26,6 +27,8 @@ stdenv.mkDerivation {
|
|||
install -D gpx_reduce.py $out/bin/gpx_reduce
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Script that removes unnecessary points from GPX files";
|
||||
homepage = "https://github.com/Alezy80/gpx_reduce";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
, lib
|
||||
, makeDesktopItem
|
||||
, makeWrapper
|
||||
, nix-update-script
|
||||
, stdenv
|
||||
|
||||
# Dependencies
|
||||
|
@ -51,6 +52,8 @@ stdenv.mkDerivation rec {
|
|||
install -D -t $out/share/applications ${desktopItem}/share/applications/*
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "A tool to select chunks from Minecraft worlds for deletion or export.";
|
||||
homepage = "https://github.com/Querz/mcaselector";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
, lib
|
||||
, makeDesktopItem
|
||||
, makeWrapper
|
||||
, nix-update-script
|
||||
, stdenv
|
||||
|
||||
# Dependencies
|
||||
|
@ -52,6 +53,8 @@ stdenv.mkDerivation rec {
|
|||
install -D -t $out/share/applications ${desktopItem}/share/applications/*
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "An efficient map viewer for Minecraft seed in a nice GUI with utilities without ever needing to install Minecraft.";
|
||||
homepage = "https://github.com/hube12/Minemap";
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, lib
|
||||
, makeDesktopItem
|
||||
, makeWrapper
|
||||
, nix-update-script
|
||||
, stdenv
|
||||
|
||||
# Dependencies
|
||||
|
@ -54,6 +55,10 @@ stdenv.mkDerivation rec {
|
|||
install -D -t $out/share/applications ${desktopItem}/share/applications/*
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex" "(.*)-win" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A graphical NBT editor for all Minecraft NBT data sources";
|
||||
homepage = "https://github.com/jaquadro/NBTExplorer";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ fetchFromGitHub
|
||||
, gitUpdater
|
||||
, lib
|
||||
, rustPlatform
|
||||
|
||||
|
@ -28,6 +29,8 @@ rustPlatform.buildRustPackage rec {
|
|||
nativeBuildInputs = [ cmake curl pkg-config ];
|
||||
buildInputs = [ libXcursor libXinerama mesa pango ];
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
||||
|
||||
meta = {
|
||||
description = "Graphical interface for pngquant with a live preview";
|
||||
homepage = "https://github.com/AndrewKvalheim/pngquant-interactive";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ fetchFromGitHub
|
||||
, lib
|
||||
, stdenv
|
||||
, unstableGitUpdater
|
||||
|
||||
# Dependencies
|
||||
, curl
|
||||
|
@ -28,6 +29,8 @@ stdenv.mkDerivation {
|
|||
install -D stitch $out/bin/tile-stitch
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Stitch together and crop map tiles for a specified bounding box";
|
||||
homepage = "https://github.com/e-n-f/tile-stitch";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ fetchCrate
|
||||
, lib
|
||||
, nix-update-script
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
|
@ -14,6 +15,8 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoHash = "sha256-0bkyopkssqH0vfaWkFC3dV2o7Q3EuDEOM8JvRB9ekLU=";
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Generate Wireguard keypairs with a given prefix string";
|
||||
homepage = "https://github.com/warner/wireguard-vanity-address";
|
||||
|
|
12
tasks/update
Executable file
12
tasks/update
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
# See https://discourse.nixos.org/t/25274
|
||||
|
||||
prefix="$(readlink --canonicalize -- "$(dirname -- "$0")/../packages")"
|
||||
nixpkgs="$(nix-instantiate --eval --expr '<nixpkgs>')"
|
||||
|
||||
exec nix-shell "$nixpkgs/maintainers/scripts/update.nix" \
|
||||
--arg include-overlays '(import ./. { }).overlays' \
|
||||
--arg predicate "(
|
||||
let prefix = \"$prefix\"; prefixLen = builtins.stringLength prefix;
|
||||
in (_: p: (builtins.substring 0 prefixLen p.meta.position) == prefix)
|
||||
)"
|
Loading…
Reference in a new issue