mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
oddjob: init at 0.34.7
This commit is contained in:
parent
815a2d2622
commit
6bc52c386f
60
pkgs/os-specific/linux/oddjob/default.nix
Normal file
60
pkgs/os-specific/linux/oddjob/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, stdenv
|
||||
, autoreconfHook
|
||||
, dbus
|
||||
, libxml2
|
||||
, pam
|
||||
, pkg-config
|
||||
, systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oddjob";
|
||||
version = "0.34.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pagure.io/oddjob/archive/${pname}-${version}/oddjob-${pname}-${version}.tar.gz";
|
||||
hash = "sha256-SUOsMH55HtEsk5rX0CXK0apDObTj738FGOaL5xZRnIM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs =[
|
||||
libxml2
|
||||
dbus
|
||||
pam
|
||||
systemd
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace configure.ac \
|
||||
--replace 'SYSTEMDSYSTEMUNITDIR=`pkg-config --variable=systemdsystemunitdir systemd 2> /dev/null`' "SYSTEMDSYSTEMUNITDIR=${placeholder "out"}" \
|
||||
--replace 'SYSTEMDSYSTEMUNITDIR=`pkg-config --variable=systemdsystemunitdir systemd`' "SYSTEMDSYSTEMUNITDIR=${placeholder "out"}"
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--prefix=${placeholder "out"}"
|
||||
"--sysconfdir=${placeholder "out"}/etc"
|
||||
"--with-selinux-acls=no"
|
||||
"--with-selinux-labels=no"
|
||||
"--disable-systemd"
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace src/oddjobd.c \
|
||||
--replace "globals.selinux_enabled" "FALSE"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Odd Job Daemon";
|
||||
homepage = "https://pagure.io/oddjob";
|
||||
changelog = "https://pagure.io/oddjob/blob/oddjob-${version}/f/ChangeLog";
|
||||
license = licenses.bsd0;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ SohamG ];
|
||||
};
|
||||
}
|
@ -9878,6 +9878,8 @@ with pkgs;
|
||||
|
||||
notesnook = callPackage ../applications/misc/notesnook { };
|
||||
|
||||
oddjob = callPackage ../os-specific/linux/oddjob { };
|
||||
|
||||
openipmi = callPackage ../tools/system/openipmi { };
|
||||
|
||||
ox = callPackage ../applications/editors/ox { };
|
||||
|
Loading…
Reference in New Issue
Block a user