Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added a defauld.nix file to build app on NixOS. #190

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# A nix alternative to `make dev`, run `nix-build` to build Kalamine on NixOS.

with import <nixpkgs> {};

python3Packages.buildPythonApplication rec {
pname = "kalamine";
version = "0.37";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-MdWP15d4J56ifLli01OIBZqgzpKQZf5f6OcR+3fP0zk=";
};

nativeBuildInputs = [
python3Packages.hatchling
];

propagatedBuildInputs = with python3Packages; [
click
livereload
pyyaml
tomli
progress
];

meta = with lib; {
description = "A cross-platform Keyboard Layout Maker";
homepage = "https://github.com/OneDeadKey/kalamine";
license = licenses.mit;
mainProgram = "kalamine";
};
}
Loading