Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
979 B
Nix
47 lines
979 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
autoconf,
|
|
automake,
|
|
pkg-config,
|
|
glib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "preload";
|
|
version = "0.6.4";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://sourceforge/preload/preload-${version}.tar.gz";
|
|
hash = "sha256-vAIaSwvbUFyTl6DflFhuSaMuX9jPVBah+Nl6c/fUbAM=";
|
|
};
|
|
|
|
patches = [
|
|
# Prevents creation of /var directories on build
|
|
./0001-prevent-building-to-var-directories.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
pkg-config
|
|
];
|
|
buildInputs = [ glib ];
|
|
|
|
configureFlags = [ "--localstatedir=/var" ];
|
|
|
|
postInstall = ''
|
|
make sysconfigdir=$out/etc/conf.d install
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Makes applications run faster by prefetching binaries and shared objects";
|
|
homepage = "https://sourceforge.net/projects/preload";
|
|
license = licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "preload";
|
|
maintainers = with maintainers; [ ldprg ];
|
|
};
|
|
}
|