depot/third_party/nixpkgs/pkgs/by-name/pr/preload/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
950 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 ];
};
}