oddjob: format with nixfmt-rfc-style, remove with lib;

This commit is contained in:
Anthony Roussel 2024-04-07 00:01:51 +02:00
parent f42230b64c
commit d30b2fe2d2
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,14 +1,15 @@
{ lib {
, fetchpatch autoreconfHook,
, fetchurl dbus,
, stdenv fetchpatch,
, autoreconfHook fetchurl,
, dbus lib,
, libxml2 libxml2,
, nixosTests nixosTests,
, pam pam,
, pkg-config pkg-config,
, systemd stdenv,
systemd,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -16,8 +17,8 @@ stdenv.mkDerivation rec {
version = "0.34.7"; version = "0.34.7";
src = fetchurl { src = fetchurl {
url = "https://pagure.io/oddjob/archive/${pname}-${version}/oddjob-${pname}-${version}.tar.gz"; url = "https://pagure.io/oddjob/archive/${pname}-${version}/oddjob-${pname}-${version}.tar.gz";
hash = "sha256-SUOsMH55HtEsk5rX0CXK0apDObTj738FGOaL5xZRnIM="; hash = "sha256-SUOsMH55HtEsk5rX0CXK0apDObTj738FGOaL5xZRnIM=";
}; };
patches = [ patches = [
@ -33,9 +34,9 @@ stdenv.mkDerivation rec {
pkg-config pkg-config
]; ];
buildInputs =[ buildInputs = [
libxml2
dbus dbus
libxml2
pam pam
systemd systemd
]; ];
@ -60,12 +61,12 @@ stdenv.mkDerivation rec {
inherit (nixosTests) oddjobd; inherit (nixosTests) oddjobd;
}; };
meta = with lib; { meta = {
changelog = "https://pagure.io/oddjob/blob/oddjob-${version}/f/ChangeLog";
description = "Odd Job Daemon"; description = "Odd Job Daemon";
homepage = "https://pagure.io/oddjob"; homepage = "https://pagure.io/oddjob";
changelog = "https://pagure.io/oddjob/blob/oddjob-${version}/f/ChangeLog"; license = lib.licenses.bsd3;
license = licenses.bsd0; maintainers = with lib.maintainers; [ SohamG ];
platforms = platforms.linux; platforms = lib.platforms.linux;
maintainers = with maintainers; [ SohamG ];
}; };
} }