forked from vlaci/openconnect-sso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applying vlaci#152
- Loading branch information
Showing
9 changed files
with
574 additions
and
452 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,9 @@ venv.bak/ | |
|
||
# pre-commit | ||
.pre-commit-cache | ||
|
||
# direnv | ||
/.direnv | ||
|
||
# Nix | ||
result |
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 |
---|---|---|
@@ -1,19 +1,57 @@ | ||
{ | ||
inputs = { | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
flake-utils.url = github:numtide/flake-utils; | ||
|
||
poetry2nix = { | ||
url = github:nix-community/poetry2nix; | ||
inputs.flake-utils.follows = "flake-utils"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
inputs.nix-github-actions.follows = "nix-github-actions"; | ||
inputs.treefmt-nix.follows = "treefmt-nix"; | ||
inputs.systems.follows = "systems"; | ||
}; | ||
|
||
|
||
# Unused but allows downstream to override versions and avoids duplicates | ||
|
||
nix-github-actions = { | ||
url = github:nix-community/nix-github-actions; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
|
||
systems.url = github:nix-systems/default; | ||
|
||
treefmt-nix = { | ||
url = github:numtide/treefmt-nix; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
}; | ||
}; | ||
|
||
outputs = { self, flake-utils, nixpkgs }: (flake-utils.lib.eachDefaultSystem ( | ||
outputs = { self, nixpkgs, ... }@inputs: (inputs.flake-utils.lib.eachDefaultSystem ( | ||
system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
openconnect-sso = (import ./nix { inherit pkgs; }).openconnect-sso; | ||
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }; | ||
|
||
openconnect-pkgs = import ./nix { | ||
inherit pkgs poetry2nix; | ||
sources = null; # make sure we don't mix flakes and Niv | ||
}; | ||
in | ||
{ | ||
packages = { inherit openconnect-sso; }; | ||
defaultPackage = openconnect-sso; | ||
packages = rec { | ||
inherit (openconnect-pkgs) openconnect-sso; | ||
|
||
default = openconnect-sso; | ||
}; | ||
|
||
devShells.default = openconnect-pkgs.shell; | ||
} | ||
) // { | ||
overlay = import ./overlay.nix; | ||
overlays = rec { | ||
default = openconnect-sso; | ||
|
||
openconnect-sso = import ./overlay.nix; | ||
}; | ||
}); | ||
} |
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 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 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 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
final: prev: { | ||
inherit (prev.callPackage ./nix { pkgs = final; }) openconnect-sso; | ||
inherit (import ./nix { pkgs = prev; }) openconnect-sso; | ||
} |
Oops, something went wrong.