Skip to content

Commit

Permalink
Merge pull request #209 from Idein/update-nix-flake-2023-11-10
Browse files Browse the repository at this point in the history
Update flake.lock
  • Loading branch information
ishiy1993 authored Nov 17, 2023
2 parents 438fd65 + 7f613fe commit f277a90
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 10 deletions.
128 changes: 121 additions & 7 deletions flake.lock

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

11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication overrides;
pkgs = import nixpkgs { inherit system; };
py = pkgs.python39;
customOverrides = self: super: {
Expand All @@ -31,10 +36,10 @@
};
in
{
packages.onnion = pkgs.poetry2nix.mkPoetryApplication {
packages.onnion = mkPoetryApplication {
projectDir = ./compiler;
python = py;
overrides = pkgs.poetry2nix.overrides.withDefaults (
overrides = overrides.withDefaults (
customOverrides
);
preferWheels = true;
Expand Down

0 comments on commit f277a90

Please sign in to comment.