Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,445 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
description = "Tahoe-LAFS, free and open decentralized data store"; | ||
inputs.nixpkgs = { | ||
url = "github:NixOS/nixpkgs?rev=838eefb4f93f2306d4614aafb9b2375f315d917f"; | ||
}; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
inputs.mach-nix = { | ||
flake = true; | ||
url = "github:DavHau/mach-nix?rev=bdc97ba6b2ecd045a467b008cff4ae337b6a7a6b"; | ||
inputs = { | ||
pypi-deps-db = { | ||
flake = false; | ||
url = "github:DavHau/pypi-deps-db?rev=76b8f1e44a8ec051b853494bcf3cc8453a294a6a"; | ||
}; | ||
nixpkgs.follows = "nixpkgs"; | ||
flake-utils.follows = "flake-utils"; | ||
}; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils, mach-nix }: | ||
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: let | ||
|
||
lib = import ./nix/lib.nix { | ||
inherit system pkgs mach-nix; | ||
}; | ||
inherit (lib) checksForVersions packageForVersions devShellForVersions withDefault; | ||
|
||
pkgs = nixpkgs.legacyPackages.${system}; | ||
|
||
# the Python version used by the default package | ||
defaultPythonVersion = "python37"; | ||
|
||
# the Python versions for which packages are available | ||
supportedPythonVersions = ["python37" "python38" "python39" ]; | ||
|
||
# the extras we will include in all packages | ||
extras = [ "tor" "i2p" ]; | ||
|
||
in rec { | ||
packages = | ||
let | ||
packages = packageForVersions extras supportedPythonVersions; | ||
tests = checksForVersions extras supportedPythonVersions; | ||
in | ||
# Define tests alongside the packages because it's easier to pick | ||
# and choose which to run this way (as compared to making them all | ||
# "checks"). | ||
withDefault (packages // tests) defaultPythonVersion; | ||
|
||
apps.default = { | ||
type = "app"; | ||
program = "${self.packages.${system}.default}/bin/tahoe"; | ||
}; | ||
|
||
devShells = | ||
withDefault | ||
(devShellForVersions extras supportedPythonVersions) | ||
defaultPythonVersion; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The Nix packaging is now "flakes"-based. |
Oops, something went wrong.