Merge pull request #278997 from wegank/xib2nib-deps-refactor

nsplist, plistcpp, xib2nib: migrate to by-name, refactor
This commit is contained in:
Weijia Wang 2024-01-13 18:19:08 +01:00 committed by GitHub
commit b77a9c94ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 22 deletions

View File

@ -1,17 +1,25 @@
{ lib, stdenv, fetchFromGitHub, flex, cmake }: { lib
, stdenv
, fetchFromGitHub
, cmake
, flex
}:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "NSPlist"; pname = "nsplist";
version = "unstable-2017-04-11"; version = "0-unstable-2017-04-11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matthewbauer"; owner = "matthewbauer";
repo = "NSPlist"; repo = "NSPlist";
rev = "713decf06c1ef6c39a707bc99eb45ac9925f2b8a"; rev = "713decf06c1ef6c39a707bc99eb45ac9925f2b8a";
sha256 = "0v4yfiwfd08hmh2ydgy6pnmlzjbd96k78dsla9pfd56ka89aw74r"; hash = "sha256-mRyuElLTlOZuUlQ3dKZJbclPq73Gv+YFrBCB5nh0nmw=";
}; };
nativeBuildInputs = [ flex cmake ]; nativeBuildInputs = [
cmake
flex
];
preConfigure = '' preConfigure = ''
# Regenerate the lexer for improved compatibility with clang 16. # Regenerate the lexer for improved compatibility with clang 16.

View File

@ -1,22 +1,36 @@
{ lib, stdenv, fetchFromGitHub, cmake, boost, NSPlist, pugixml }: { lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, nsplist
, pugixml
}:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "PlistCpp"; pname = "plistcpp";
version = "unstable-11615d"; version = "0-unstable-2017-04-11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matthewbauer"; owner = "matthewbauer";
repo = "PlistCpp"; repo = "PlistCpp";
rev = "11615deab3369356a182dabbf5bae30574967264"; rev = "11615deab3369356a182dabbf5bae30574967264";
sha256 = "10jn6bvm9vn6492zix2pd724v5h4lccmkqg3lxfw8r0qg3av0yzv"; hash = "sha256-+3uw1XgYZMRdp+PhWRmjBJZNxGlX9PhFIsbuVPcyVoI=";
}; };
postPatch = '' postPatch = ''
sed -i "1i #include <algorithm>" src/Plist.cpp sed -i "1i #include <algorithm>" src/Plist.cpp
''; '';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [
buildInputs = [ boost NSPlist pugixml ]; cmake
];
buildInputs = [
boost
nsplist
pugixml
];
meta = with lib; { meta = with lib; {
maintainers = with maintainers; [ matthewbauer ]; maintainers = with maintainers; [ matthewbauer ];

View File

@ -1,18 +1,31 @@
{ lib, stdenv, fetchFromGitHub, pugixml, boost, PlistCpp }: { lib
, stdenv
, fetchFromGitHub
, boost
, plistcpp
, pugixml
}:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "xib2nib"; pname = "xib2nib";
version = "unstable-2017-04-12"; version = "0-unstable-2017-04-12";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "matthewbauer"; owner = "matthewbauer";
repo = "xib2nib"; repo = "xib2nib";
rev = "97c6a53aab83d919805efcae33cf80690e953d1e"; rev = "97c6a53aab83d919805efcae33cf80690e953d1e";
sha256 = "08442f4xg7racknj35nr56a4c62gvdgdw55pssbkn2qq0rfzziqq"; hash = "sha256-GMf/XQYYCzuX1rcU3l7bTxhGlCnZliHtZCqf14kThCA=";
}; };
buildInputs = [ PlistCpp pugixml boost ]; buildInputs = [
makeFlags = [ "PREFIX=$(out)" ]; boost
plistcpp
pugixml
];
makeFlags = [
"PREFIX=$(out)"
];
meta = with lib; { meta = with lib; {
maintainers = with maintainers; [ matthewbauer ]; maintainers = with maintainers; [ matthewbauer ];

View File

@ -728,6 +728,7 @@ mapAliases ({
noto-fonts-cjk = noto-fonts-cjk-sans; # Added 2021-12-16 noto-fonts-cjk = noto-fonts-cjk-sans; # Added 2021-12-16
noto-fonts-emoji = noto-fonts-color-emoji; # Added 2023-09-09 noto-fonts-emoji = noto-fonts-color-emoji; # Added 2023-09-09
noto-fonts-extra = noto-fonts; # Added 2023-04-08 noto-fonts-extra = noto-fonts; # Added 2023-04-08
NSPlist = nsplist; # Added 2024-01-05
nvidia-thrust = throw "nvidia-thrust has been removed because the project was deprecated; use cudaPackages.cuda_cccl"; nvidia-thrust = throw "nvidia-thrust has been removed because the project was deprecated; use cudaPackages.cuda_cccl";
### O ### ### O ###
@ -817,6 +818,7 @@ mapAliases ({
pinentry_gtk2 = throw "'pinentry_gtk2' has been renamed to/replaced by 'pinentry-gtk2'"; # Converted to throw 2023-09-10 pinentry_gtk2 = throw "'pinentry_gtk2' has been renamed to/replaced by 'pinentry-gtk2'"; # Converted to throw 2023-09-10
pinentry_qt = throw "'pinentry_qt' has been renamed to/replaced by 'pinentry-qt'"; # Converted to throw 2023-09-10 pinentry_qt = throw "'pinentry_qt' has been renamed to/replaced by 'pinentry-qt'"; # Converted to throw 2023-09-10
pinentry_qt5 = pinentry-qt; # Added 2020-02-11 pinentry_qt5 = pinentry-qt; # Added 2020-02-11
PlistCpp = plistcpp; # Added 2024-01-05
poetry2nix = throw "poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/"; # Added 2023-10-26 poetry2nix = throw "poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/"; # Added 2023-10-26
prayer = throw "prayer has been removed from nixpkgs"; # Added 2023-11-09 prayer = throw "prayer has been removed from nixpkgs"; # Added 2023-11-09
privacyidea = throw "privacyidea has been removed from nixpkgs"; # Added 2023-10-31 privacyidea = throw "privacyidea has been removed from nixpkgs"; # Added 2023-10-31

View File

@ -41631,12 +41631,6 @@ with pkgs;
chrome-token-signing = libsForQt5.callPackage ../tools/security/chrome-token-signing { }; chrome-token-signing = libsForQt5.callPackage ../tools/security/chrome-token-signing { };
NSPlist = callPackage ../development/libraries/NSPlist { };
PlistCpp = callPackage ../development/libraries/PlistCpp { };
xib2nib = callPackage ../development/tools/xib2nib { };
linode-cli = python3Packages.callPackage ../tools/virtualization/linode-cli { }; linode-cli = python3Packages.callPackage ../tools/virtualization/linode-cli { };
hss = callPackage ../tools/networking/hss { }; hss = callPackage ../tools/networking/hss { };