summaryrefslogtreecommitdiff
path: root/nix/shell.nix
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2022-04-15 16:31:17 +0200
committerMiguel <m.i@gmx.at>2022-04-15 16:31:17 +0200
commitf40dcbf0b7289c63e26756b2f6d747120d303b6f (patch)
tree2f99f0da1ee7a3ef145064480a09d6ff35233607 /nix/shell.nix
parentfe1f439aff7e0d00535e0ab3393cefa92fcf6a7c (diff)
fixup/cleanup nixops
Diffstat (limited to 'nix/shell.nix')
-rw-r--r--nix/shell.nix21
1 files changed, 19 insertions, 2 deletions
diff --git a/nix/shell.nix b/nix/shell.nix
index 6318285..b4d0142 100644
--- a/nix/shell.nix
+++ b/nix/shell.nix
@@ -1,6 +1,23 @@
{ pkgs ? import <nixpkgs> {} }:
+/* https://githubhot.com/repo/NixOS/nixops/issues/1490?page=2 */
with pkgs;
-mkShell {
+let packs = [
+ (pkgs.nixopsUnstable.override {
+ ## https://github.com/NixOS/nixops/issues/1490
+ overrides = (self: super: {
+ nixops = super.nixops.overridePythonAttrs (
+ _: {
+ src = pkgs.fetchgit {
+ url = "https://github.com/nixos/nixops";
+ rev = "35ac02085169bc2372834d6be6cf4c1bdf820d09";
+ sha256 = "1jh0jrxyywjqhac2dvpj7r7isjv68ynbg7g6f6rj55raxcqc7r3j";
+ };
+ }
+ );
+ });
+ })
+ ];
+in mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
- nativeBuildInputs = [ nixopsUnstable nixos-generators ];
+ nativeBuildInputs = packs; /* -- [ nixopsUnstable nixos-generators ] */
}