summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/build-rust-package.nix42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/build-rust-package.nix b/lib/build-rust-package.nix
deleted file mode 100644
index 7bebe99..0000000
--- a/lib/build-rust-package.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- lib,
- rustPlatform,
- fetchFromGitHub,
-}:
-{
- pname,
- version,
- githubOwner,
- githubHash,
- cargoHash,
- description ? null,
- license,
- maintainers ? null,
- buildInputs ? [ ],
- nativeBuildInputs ? [ ],
-}:
-rustPlatform.buildRustPackage rec {
- inherit
- pname
- version
- buildInputs
- nativeBuildInputs
- cargoHash
- ;
-
- src = fetchFromGitHub {
- owner = githubOwner;
- repo = pname;
- rev = version;
- hash = githubHash;
- };
-
- doCheck = false;
-
- meta = with lib; {
- inherit description license;
- homepage = "https://github.com/${githubOwner}/${pname}";
- inherit maintainers;
- mainProgram = pname;
- };
-}