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

Add nix flake #141

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
propagatedBuildInputs = with pkgs.python3Packages; [
anytree
fusepy
httpsig
pbkdf2
pyyaml
requests
setuptools
tqdm
urllib3
zeroconf
];
dpt-rp1-py = pkgs.python3Packages.buildPythonApplication {
inherit propagatedBuildInputs;

pname = "dpt-rp1-py";
version = "0.1.16";

src = ./.;
doCheck = false;

pythonImportsCheck = ["dptrp1"];
};
in rec {
devShell = pkgs.mkShell {
inherit propagatedBuildInputs;
nativeBuildInputs = [];
};
packages.default = dpt-rp1-py;
apps = {
dptrp1 = flake-utils.lib.mkApp {
drv = packages.default;
name = "dptrp1";
};
dptmount = flake-utils.lib.mkApp {
drv = packages.default;
name = "dptmount";
};
default = apps.dptrp1;
};
});
}