Skip to content

Commit

Permalink
Added a defauld.nix file to build app on NixOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclear-Squid committed Oct 8, 2024
1 parent 5ad53d1 commit 6f1fc85
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
with import <nixpkgs> {};
# { lib
# , fetchPypi
# , python3Packages
# }:

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;
# maintainers = with maintainers; [ marsam ];
mainProgram = "kalamine";
};
}

0 comments on commit 6f1fc85

Please sign in to comment.