nixpkgs/pkgs/development/libraries/keystone/default.nix
Malo Bourgon 9e4be53221 treewide: add meta.mainProgram to some libraries
where a single bin is provided and someone might actually want to run it
2022-05-04 18:11:50 -07:00

39 lines
765 B
Nix

{ lib, stdenv
, fetchFromGitHub
, pkg-config
, cmake
, python3
}:
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
];
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;
};
}