libmcfp: fix format
- add changelog to meta - use finalAttrs
This commit is contained in:
parent
3582c352f7
commit
baebaec1e8
1 changed files with 13 additions and 6 deletions
|
@ -1,23 +1,30 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libmcfp";
|
||||
version = "1.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mhekkel";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
repo = "libmcfp";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
hash = "sha256-Xz7M3TmUHGqiYZbFGSDxsVvg4VhgoVvr9TW03UxdFBw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Header only library that can collect configuration options from command line arguments";
|
||||
homepage = "https://github.com/mhekkel/libmcfp";
|
||||
changelog = "https://github.com/mhekkel/libmcfp/blob/${finalAttrs.src.rev}/changelog";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue