diff options
author | figsoda <figsoda@pm.me> | 2022-11-22 20:11:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 20:11:58 -0500 |
commit | 3b400a525d92e4085e46141ff48cbf89fd89739e (patch) | |
tree | e85a0240a2ea24ad526ef0408aef4333ce561c3c /pkgs | |
parent | a9b8f8f209a394238f218cd9b071a531ad12fdab (diff) | |
parent | da31e2c1b725de78d5fcf4125962e595ce4e3b16 (diff) |
Merge pull request #202381 from figsoda/typeshare
typeshare: init at 1.0.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/rust/typeshare/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/typeshare/default.nix b/pkgs/development/tools/rust/typeshare/default.nix new file mode 100644 index 0000000000000..2dc405b85134e --- /dev/null +++ b/pkgs/development/tools/rust/typeshare/default.nix @@ -0,0 +1,27 @@ +{ lib, rustPlatform, fetchCrate }: + +rustPlatform.buildRustPackage rec { + pname = "typeshare"; + version = "1.0.0"; + + src = fetchCrate { + inherit version; + pname = "typeshare-cli"; + sha256 = "sha256-KDmE5f9B2lNVbjdF8d81NTJIwpvPhsoLMA8w7iYIIl8="; + }; + + cargoSha256 = "sha256-b983tSue9WHkPrcIhp5QSjwj+lESURUYueebjXUWMJY="; + + buildFeatures = [ "go" ]; + + postInstall = '' + ln -s $out/bin/typeshare{-cli,} + ''; + + meta = with lib; { + description = "Command Line Tool for generating language files with typeshare"; + homepage = "https://github.com/1password/typeshare"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0a09e5f6322f9..7c1fa43aa4834 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15254,6 +15254,7 @@ with pkgs; openssl = openssl_1_1; }; rusty-man = callPackage ../development/tools/rust/rusty-man { }; + typeshare = callPackage ../development/tools/rust/typeshare { }; sagittarius-scheme = callPackage ../development/compilers/sagittarius-scheme {}; |