mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 18:23:44 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
928 B
Nix
43 lines
928 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, cmake
|
|
, python3
|
|
, fixDarwinDylibNames
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "keystone";
|
|
version = "0.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keystone-engine";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "020d1l1aqb82g36l8lyfn2j8c660mm6sh1nl4haiykwgdl9xnxfa";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
python3
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# TODO: could be replaced by setting CMAKE_INSTALL_NAME_DIR?
|
|
fixDarwinDylibNames
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight multi-platform, multi-architecture assembler framework";
|
|
homepage = "https://www.keystone-engine.org";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ luc65r ];
|
|
mainProgram = "kstool";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|