Merge pull request #307518 from isabelroses/maintain

treewide: adopt orphaned packages
This commit is contained in:
Aleksana 2024-04-29 04:09:20 +08:00 committed by GitHub
commit 2a1372e719
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 20 deletions

View file

@ -1,5 +1,9 @@
{ lib, fetchFromGitHub, rustPlatform, git }: {
lib,
fetchFromGitHub,
rustPlatform,
git,
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "gitprompt-rs"; pname = "gitprompt-rs";
version = "0.3.0"; version = "0.3.0";
@ -14,15 +18,15 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0avs833vb6q1avjbfygm55s83iy942xgqsx6qdzksry44n35s418"; cargoSha256 = "0avs833vb6q1avjbfygm55s83iy942xgqsx6qdzksry44n35s418";
postPatch = '' postPatch = ''
substituteInPlace src/main.rs \ substituteInPlace src/main.rs \
--replace 'Command::new("git")' 'Command::new("${git}/bin/git")' --replace 'Command::new("git")' 'Command::new("${git}/bin/git")'
''; '';
meta = with lib; { meta = with lib; {
description = "Simple Git prompt"; description = "Simple Git prompt";
homepage = "https://github.com/9ary/gitprompt-rs"; homepage = "https://github.com/9ary/gitprompt-rs";
license = with licenses; [ mpl20 ]; license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ isabelroses ];
mainProgram = "gitprompt-rs"; mainProgram = "gitprompt-rs";
}; };
} }

View file

@ -1,5 +1,8 @@
{ lib, buildGoModule, fetchFromGitHub }: {
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec { buildGoModule rec {
pname = "go-toml"; pname = "go-toml";
version = "2.2.1"; version = "2.2.1";
@ -19,13 +22,16 @@ buildGoModule rec {
"cmd/tomltestgen" "cmd/tomltestgen"
]; ];
ldflags = [ "-s" "-w" ]; ldflags = [
"-s"
"-w"
];
meta = with lib; { meta = with lib; {
description = "Go library for the TOML language"; description = "Go library for the TOML language";
homepage = "https://github.com/pelletier/go-toml"; homepage = "https://github.com/pelletier/go-toml";
changelog = "https://github.com/pelletier/go-toml/releases/tag/v${version}"; changelog = "https://github.com/pelletier/go-toml/releases/tag/v${version}";
maintainers = [ ]; maintainers = [ maintainers.isabelroses ];
license = licenses.mit; license = licenses.mit;
}; };
} }

View file

@ -1,8 +1,8 @@
{ lib {
, fetchFromGitHub lib,
, buildGoModule fetchFromGitHub,
buildGoModule,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "gotestsum"; pname = "gotestsum";
version = "1.10.1"; version = "1.10.1";
@ -33,6 +33,6 @@ buildGoModule rec {
mainProgram = "gotestsum"; mainProgram = "gotestsum";
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ isabelroses ];
}; };
} }

View file

@ -1,8 +1,8 @@
{ lib {
, buildGoModule lib,
, fetchFromGitHub buildGoModule,
fetchFromGitHub,
}: }:
buildGoModule rec { buildGoModule rec {
pname = "goflow2"; pname = "goflow2";
version = "2.1.3"; version = "2.1.3";
@ -26,6 +26,6 @@ buildGoModule rec {
description = "High performance sFlow/IPFIX/NetFlow Collector"; description = "High performance sFlow/IPFIX/NetFlow Collector";
homepage = "https://github.com/netsampler/goflow2"; homepage = "https://github.com/netsampler/goflow2";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ isabelroses ];
}; };
} }

View file

@ -33,7 +33,7 @@ buildGoModule rec {
homepage = "https://smallstep.com/cli/"; homepage = "https://smallstep.com/cli/";
changelog = "https://github.com/smallstep/cli/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/smallstep/cli/blob/v${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ isabelroses ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
mainProgram = "step"; mainProgram = "step";
}; };