1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 testers,
6 nix-update-script,
7 dotslash,
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "dotslash";
12 version = "0.5.3";
13
14 src = fetchCrate {
15 inherit pname version;
16 hash = "sha256-csggbV5IyO9TlhN8S/E3LRfqqFJvj4cshByC6S7qpDk=";
17 };
18
19 cargoHash = "sha256-FyFrKaV5itdr0HtE5Ize21mwCwHRTzmIt+kmB972s9M=";
20 doCheck = false; # http tests
21
22 passthru = {
23 updateScript = nix-update-script { };
24 tests = testers.testVersion {
25 package = dotslash;
26 };
27 };
28
29 meta = with lib; {
30 homepage = "https://dotslash-cli.com";
31 description = "Simplified multi-platform executable deployment";
32 longDescription = ''
33 DotSlash is a command-line tool that is designed to facilitate fetching an
34 executable, verifying it, and then running it. It maintains a local cache
35 of fetched executables so that subsequent invocations are fast.
36
37 DotSlash helps keeps heavyweight binaries out of your repo while ensuring
38 your developers seamlessly get the tools they need, ensuring consistent
39 builds across platforms.
40 '';
41 license = with licenses; [
42 asl20 # or
43 mit
44 ];
45 mainProgram = "dotslash";
46 maintainers = with maintainers; [ thoughtpolice ];
47 };
48}