Merge staging-next into staging
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "docopts";
|
||||
version = "0.6.3-rc2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "docopt";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-PmsTkPT/sf70MKYLhHvjCDb2o3VQ1k7d++RUW7rcoAg=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/docopt/${pname}";
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
subPackages = [ "./" ];
|
||||
|
||||
postInstall = ''
|
||||
install -D -m 755 ./go/src/$goPackagePath/docopts.sh $out/bin/docopts.sh
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/docopt/${pname}";
|
||||
description = "docopt CLI tool for shell scripting";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.confus ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/docopt/docopt-go";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/docopt/docopt.go";
|
||||
rev = "ee0de3bc6815ee19d4a46c7eb90f829db0e014b1"; # "0.6.2";
|
||||
sha256 = "sha256-0mCKIC5x7aauBL8ahXB9ExMfoTJl55HaafWWWPNRmUI=";
|
||||
};
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, cmake }:
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "unused";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "unused-code";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "06r6m7k570rdm9szghnp3g4r6ij0vp8apfanqzzxv2hd7gf8v62b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cargoSha256 = "1c0gj2wp0nydv0binxj3ikm5sm6y5z3pklp5b06dgvq02licz57a";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool to identify potentially unused code";
|
||||
homepage = "https://unused.codes";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.lrworth ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user