aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-05-01 16:12:12 +0100
committerAkshay <[email protected]>2022-05-01 16:12:12 +0100
commit53b454cd6acba89fe6b5bb39df431afa28a6ee13 (patch)
treecd70026307c98a33c6ce25b0849d9e297e5bf842 /flake.nix
parent448e6f2096b855bee1464c514dfb73477fb39774 (diff)
add `ignore` to statix.tomlv0.5.5
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index f6099e0..1fd10a9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -108,5 +108,24 @@
108 RUST_BACKTRACE = 1; 108 RUST_BACKTRACE = 1;
109 }); 109 });
110 110
111
112 apps = forAllSystems
113 (system:
114 let
115 pkgs = nixpkgsFor."${system}";
116 cachix-push-script = pkgs.writeScriptBin "cachix-push" ''
117 ${pkgs.nixUnstable}/bin/nix build --json \
118 | ${pkgs.jq}/bin/jq -r '.[].outputs | to_entries[].value' \
119 | ${pkgs.cachix}/bin/cachix push statix
120 '';
121 in
122 {
123 cachix-push = {
124 type = "app";
125 program = "${cachix-push-script}/bin/cachix-push";
126 };
127 }
128 );
129
111 }; 130 };
112} 131}