Skip to content

Commit

Permalink
refactor: tiny changes to nix package
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Jun 17, 2024
1 parent bb5ba91 commit 47ac96e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Running `nix shell github:GetPsyched/charachorder.py` will spawn a shell with Py
Simply copy this derivation into your project and call it using `python3Packages.callPackage ./charachorder.nix { }`. If you don't know where to paste this, then this installation method is probably not for you.

```nix
{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder, pyserial }:
{ buildPythonPackage, fetchFromGitHub, lib, pythonOlder, inquirer, pyserial }:
buildPythonPackage rec {
buildPythonPackage {
pname = "charachorder.py";
version = "0.4.3";
format = "setuptools";
Expand All @@ -49,14 +49,14 @@ buildPythonPackage rec {
hash = ""; # FIXME: Fill the hash here. Hint: Run this once and you will get the hash in the error
};
nativeBuildInputs = [ pyserial ];
nativeBuildInputs = [ inquirer pyserial ];
meta = with lib; {
meta = {
description = "A wrapper for CharaChorder's Serial API written in Python";
downloadPage = "https://pypi.org/project/charachorder.py/#files";
homepage = "https://github.com/GetPsyched/charachorder.py";
license = licenses.mit;
maintainers = [ maintainers.getpsyched ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getpsyched ];
};
}
```
8 changes: 4 additions & 4 deletions package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ buildPythonPackage, lib, pythonOlder, inquirer, pyserial }:

buildPythonPackage rec {
buildPythonPackage {
pname = "charachorder.py";
version = "0.4.3";
format = "setuptools";
Expand All @@ -11,11 +11,11 @@ buildPythonPackage rec {

nativeBuildInputs = [ inquirer pyserial ];

meta = with lib; {
meta = {
description = "A wrapper for CharaChorder's Serial API written in Python";
downloadPage = "https://pypi.org/project/charachorder.py/#files";
homepage = "https://github.com/GetPsyched/charachorder.py";
license = licenses.mit;
maintainers = [ maintainers.getpsyched ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getpsyched ];
};
}

0 comments on commit 47ac96e

Please sign in to comment.