mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #293588 from ambroisie/bt-migrate
bt-migrate: init at 0-unstable-2023-08-17
This commit is contained in:
commit
d0e271775a
65
pkgs/by-name/bt/bt-migrate/package.nix
Normal file
65
pkgs/by-name/bt/bt-migrate/package.nix
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{ lib
|
||||||
|
, boost
|
||||||
|
, cmake
|
||||||
|
, cxxopts
|
||||||
|
, digestpp
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fmt
|
||||||
|
, jsoncons
|
||||||
|
, pugixml
|
||||||
|
, sqlite
|
||||||
|
, sqlite_orm
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "bt-migrate";
|
||||||
|
version = "0-unstable-2023-08-17";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mikedld";
|
||||||
|
repo = "bt-migrate";
|
||||||
|
rev = "e15a489c0c76f98355586ebbee08223af4e9bf50";
|
||||||
|
hash = "sha256-kA6yxhbIh3ThmgF8Zyoe3I79giLVmdNr9IIrw5Xx4s0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
cxxopts
|
||||||
|
fmt
|
||||||
|
jsoncons
|
||||||
|
pugixml
|
||||||
|
sqlite_orm
|
||||||
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
(lib.strings.cmakeBool "USE_VCPKG" false)
|
||||||
|
# NOTE: digestpp does not have proper CMake packaging (yet?)
|
||||||
|
(lib.strings.cmakeBool "USE_FETCHCONTENT" true)
|
||||||
|
(lib.strings.cmakeFeature "FETCHCONTENT_SOURCE_DIR_DIGESTPP" "${digestpp}/include/digestpp")
|
||||||
|
];
|
||||||
|
|
||||||
|
# NOTE: no install target in CMake...
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp BtMigrate $out/bin
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Torrent state migration tool";
|
||||||
|
homepage = "https://github.com/mikedld/bt-migrate?tab=readme-ov-file";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
|
mainProgram = "BtMigrate";
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
32
pkgs/by-name/di/digestpp/package.nix
Normal file
32
pkgs/by-name/di/digestpp/package.nix
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenvNoCC
|
||||||
|
}:
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "digestpp";
|
||||||
|
version = "0-unstable-2023-11-07";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "kerukuro";
|
||||||
|
repo = "digestpp";
|
||||||
|
rev = "ebb699402c244e22c3aff61d2239bcb2e87b8ef8";
|
||||||
|
hash = "sha256-9X/P7DgZB6bSYjQWRli4iAXEFjhmACOVv3EYQrXuH5c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/include/digestpp
|
||||||
|
cp -r *.hpp algorithm/ detail/ $out/include/digestpp
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "C++11 header-only message digest library";
|
||||||
|
homepage = "https://github.com/kerukuro/digestpp";
|
||||||
|
license = licenses.unlicense;
|
||||||
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
35
pkgs/by-name/sq/sqlite_orm/package.nix
Normal file
35
pkgs/by-name/sq/sqlite_orm/package.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, cmake
|
||||||
|
, fetchFromGitHub
|
||||||
|
, sqlite
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "sqlite_orm";
|
||||||
|
version = "1.8.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fnc12";
|
||||||
|
repo = "sqlite_orm";
|
||||||
|
rev = "v${finalAttrs.version}";
|
||||||
|
hash = "sha256-KqphGFcnR1Y11KqL7sxODSv7lEvcURdF6kLd3cg84kc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
sqlite
|
||||||
|
];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Light header only SQLite ORM";
|
||||||
|
homepage = "https://sqliteorm.com/";
|
||||||
|
license = licenses.agpl3Only; # MIT license is commercial
|
||||||
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user