Merge branch 'master' into staging-next
- Thunderbird 68 has been dropped on master. - gccCrossLibcStdenv has been factored out on staging-next in all-packages.nix, while the file has been re-formatted on master.
This commit is contained in:
@@ -2,20 +2,21 @@
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "mbtileserver";
|
||||
version = "0.6.1";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "consbio";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0b0982rn5jsv8zxfkrcmhys764nim6136hafc8ccj0mwdyvwafxd";
|
||||
sha256 = "sha256-QdirExVv7p7Mnhp8EGdTVRlmEiYpzoXVQbtO8aS9Kas=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
vendorSha256 = "sha256-mUUxUZn8out6WNvKJKHoz+R44RDB0oWJb+57w72+E5w=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple Go-based server for map tiles stored in mbtiles format";
|
||||
homepage = "https://github.com/consbio/mbtileserver";
|
||||
changelog = "https://github.com/consbio/mbtileserver/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
|
||||
@@ -15,42 +15,35 @@ let
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "minio";
|
||||
version = "2021-05-11T23-27-41Z";
|
||||
version = "2021-05-16T05-32-34Z";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "minio";
|
||||
repo = "minio";
|
||||
rev = "RELEASE.${version}";
|
||||
sha256 = "0yljq4lm9maz73ha9m38ljv977999p57rfkzybgzbjjrijgszm2b";
|
||||
sha256 = "sha256-+zanqJMYNg/1c20cMm+bqVsW8VquucxEK5NiFAqOmS0=";
|
||||
};
|
||||
|
||||
vendorSha256 = "1dm8nbg86zvxakc7h4dafqb035sc5x6viz8p409l22l695qrp6bi";
|
||||
vendorSha256 = "sha256-5aDD68nugFyWsySLEj7LXAdtFXFKWnqfz+5zF5wC2qw=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/Version.*/Version = \"${versionToTimestamp version}\"/g" cmd/build-constants.go
|
||||
sed -i "s/ReleaseTag.*/ReleaseTag = \"RELEASE.${version}\"/g" cmd/build-constants.go
|
||||
sed -i "s/CommitID.*/CommitID = \"${src.rev}\"/g" cmd/build-constants.go
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
export CGO_ENABLED=0
|
||||
'';
|
||||
|
||||
buildFlagsArray = [
|
||||
"-tags=kqueue"
|
||||
];
|
||||
preBuild = let t = "github.com/minio/minio/cmd"; in
|
||||
''
|
||||
export CGO_ENABLED=0
|
||||
buildFlagsArray+=("-tags" "kqueue" "-ldflags" "-s -w -X ${t}.Version=${versionToTimestamp version} -X ${t}.ReleaseTag=RELEASE.${version} -X ${t}.CommitID=${src.rev}")
|
||||
'';
|
||||
|
||||
passthru.tests.minio = nixosTests.minio;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.minio.io/";
|
||||
description = "An S3-compatible object storage server";
|
||||
changelog = "https://github.com/minio/minio/releases/tag/RELEASE.${version}";
|
||||
maintainers = with maintainers; [ eelco bachp ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.asl20;
|
||||
license = licenses.agpl3Plus;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user