1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/package-management/createrepo_c/default.nix
R. RyanTM 323dc1171b createrepo_c: 0.10.0 -> 0.11.0
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
2018-07-04 11:52:38 -07:00

39 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 ];
};
}