From 2cded1ab8dbbbdf27a448dbcac94a101662d279b Mon Sep 17 00:00:00 2001 From: mangoiv Date: Mon, 25 Nov 2024 10:21:20 +0100 Subject: [PATCH] polarity: add nix-update updatescript --- pkgs/by-name/po/polarity/package.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/po/polarity/package.nix b/pkgs/by-name/po/polarity/package.nix index 7ae41d90317d..f3917488f5a4 100644 --- a/pkgs/by-name/po/polarity/package.nix +++ b/pkgs/by-name/po/polarity/package.nix @@ -1,6 +1,8 @@ -{ lib -, fetchFromGitHub -, rustPlatform +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, }: rustPlatform.buildRustPackage rec { @@ -16,14 +18,21 @@ rustPlatform.buildRustPackage rec { cargoLock = { lockFile = ./Cargo.lock; - outputHashes = { "codespan-0.11.1" = "sha256-Wq99v77bqSGIOK/iyv+x/EG1563XSeaTDW5K2X3kSXU="; }; + outputHashes = { + "codespan-0.11.1" = "sha256-Wq99v77bqSGIOK/iyv+x/EG1563XSeaTDW5K2X3kSXU="; + }; }; + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; + meta = { description = "A Language with Dependent Data and Codata Types"; homepage = "https://polarity-lang.github.io/"; changelog = "https://github.com/polarity-lang/polarity/blob/${src.rev}/CHANGELOG.md"; - license = with lib.licenses; [ mit asl20 ]; + license = with lib.licenses; [ + mit + asl20 + ]; maintainers = [ lib.maintainers.mangoiv ]; mainProgram = "pol"; platforms = lib.platforms.all;