323dc1171b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/createrepo_c/versions. These checks were done: - built on NixOS - /nix/store/japb72abhyigv3na7jb2jnslg4m5lvks-createrepo_c-0.11.0/bin/createrepo_c passed the binary check. - /nix/store/japb72abhyigv3na7jb2jnslg4m5lvks-createrepo_c-0.11.0/bin/mergerepo_c passed the binary check. - /nix/store/japb72abhyigv3na7jb2jnslg4m5lvks-createrepo_c-0.11.0/bin/modifyrepo_c passed the binary check. - /nix/store/japb72abhyigv3na7jb2jnslg4m5lvks-createrepo_c-0.11.0/bin/sqliterepo_c passed the binary check. - 4 of 4 passed binary check by having a zero exit code. - 0 of 4 passed binary check by having the new version present in output. - found 0.11.0 with grep in /nix/store/japb72abhyigv3na7jb2jnslg4m5lvks-createrepo_c-0.11.0 - directory tree listing: https://gist.github.com/58f40cce4b69dd806f345f13d65833cb - du listing: https://gist.github.com/4f61dce7f9bacb5093fb7cec50712fc1
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, bzip2, expat, glib, curl, libxml2, python2, rpm, openssl, sqlite, file, xz, pcre, bash-completion }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
rev = "0.11.0";
|
|
name = "createrepo_c-${rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "rpm-software-management";
|
|
repo = "createrepo_c";
|
|
sha256 = "1w9yynj8mxhw714gvgr0fibfks584b4y0n4vjckcf7y97cpdhjkn";
|
|
};
|
|
|
|
patches = [
|
|
./fix-bash-completion-path.patch
|
|
./fix-python-install-path.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace '@BASHCOMP_DIR@' "$out/share/bash-completion/completions"
|
|
substituteInPlace src/python/CMakeLists.txt \
|
|
--replace "@PYTHON_INSTALL_PATH@" "$out/${python2.sitePackages}"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ bzip2 expat glib curl libxml2 python2 rpm openssl sqlite file xz pcre bash-completion ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "C implementation of createrepo";
|
|
homepage = "http://rpm-software-management.github.io/createrepo_c/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
};
|
|
}
|
|
|