nixpkgs/pkgs/development/tools/makerpm/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
733 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib, libarchive, openssl }:
stdenv.mkDerivation rec {
version = "1.0";
pname = "makerpm";
installPhase = ''
mkdir -p $out/bin
cp makerpm $out/bin
'';
buildInputs = [ zlib libarchive openssl ];
src = fetchFromGitHub {
owner = "ivan-tkatchev";
repo = "makerpm";
rev = version;
sha256 = "089dkbh5705ppyi920rd0ksjc0143xmvnhm8qrx93rsgwc1ggi1y";
};
meta = with lib; {
homepage = "https://github.com/ivan-tkatchev/makerpm/";
description = "A clean, simple RPM packager reimplemented completely from scratch";
mainProgram = "makerpm";
license = licenses.free;
platforms = platforms.all;
maintainers = [ maintainers.ivan-tkatchev ];
};
}