nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 which, 7 zlib, 8 openssl, 9 libarchive, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "xbps"; 14 version = "0.60.6"; 15 16 src = fetchFromGitHub { 17 owner = "void-linux"; 18 repo = "xbps"; 19 tag = finalAttrs.version; 20 hash = "sha256-euV8oi1na+mfILnnUHK5S8Pi6+QuOUA8KhD0FHUqM70="; 21 }; 22 23 nativeBuildInputs = [ 24 pkg-config 25 which 26 ]; 27 28 buildInputs = [ 29 zlib 30 openssl 31 libarchive 32 ]; 33 34 patches = [ 35 ./cert-paths.patch 36 ]; 37 38 env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result -Wno-error=deprecated-declarations"; 39 40 # Don't try to install keys to /var/db/xbps, put in $out/share for now 41 postPatch = '' 42 substituteInPlace data/Makefile \ 43 --replace-fail '$(DESTDIR)/$(DBDIR)' '$(DESTDIR)/$(SHAREDIR)' 44 ''; 45 46 enableParallelBuilding = true; 47 48 meta = { 49 homepage = "https://github.com/void-linux/xbps"; 50 description = "X Binary Package System"; 51 platforms = lib.platforms.linux; # known to not work on Darwin, at least 52 license = lib.licenses.bsd2; 53 maintainers = [ ]; 54 }; 55})