From 1e472d971998296deff1ca28a8ff1f6dc197794c Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 25 Mar 2025 09:02:28 +0100 Subject: [PATCH] snipe-it: reformat, cleanup --- pkgs/by-name/sn/snipe-it/package.nix | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/sn/snipe-it/package.nix b/pkgs/by-name/sn/snipe-it/package.nix index 9a1cd732c6e9..26674a859f2d 100644 --- a/pkgs/by-name/sn/snipe-it/package.nix +++ b/pkgs/by-name/sn/snipe-it/package.nix @@ -1,9 +1,10 @@ -{ lib -, dataDir ? "/var/lib/snipe-it" -, fetchFromGitHub -, mariadb -, nixosTests -, php84 +{ + lib, + dataDir ? "/var/lib/snipe-it", + fetchFromGitHub, + mariadb, + nixosTests, + php84, }: php84.buildComposerProject2 (finalAttrs: { @@ -13,7 +14,7 @@ php84.buildComposerProject2 (finalAttrs: { src = fetchFromGitHub { owner = "snipe"; repo = "snipe-it"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-iS9PfWZlwWfxMkCJS7Lbp2+XxoGJz2yedn4nsu34YhU="; }; @@ -44,7 +45,7 @@ php84.buildComposerProject2 (finalAttrs: { phpPackage = php84; }; - meta = with lib; { + meta = { description = "Free open source IT asset/license management system"; longDescription = '' Snipe-IT was made for IT asset management, to enable IT departments to track @@ -54,8 +55,8 @@ php84.buildComposerProject2 (finalAttrs: { ''; homepage = "https://snipeitapp.com/"; changelog = "https://github.com/snipe/snipe-it/releases/tag/v${finalAttrs.version}"; - license = licenses.agpl3Only; - maintainers = with maintainers; [ yayayayaka ]; - platforms = platforms.linux; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ yayayayaka ]; + platforms = lib.platforms.linux; }; })