add compat for sr.ht

This commit is contained in:
Cyryl Płotnicki 2021-06-19 23:57:10 +01:00
parent 44d840aa4a
commit f5109e3f6f
2 changed files with 17 additions and 1 deletions

View file

@ -7,7 +7,8 @@ secrets:
tasks:
- check: |
nix flake check
cd dotfiles
nix-shell --pure --run 'nix-experimental flake check'
- github_push: |
set +xv
cd dotfiles

15
shell.nix Normal file
View file

@ -0,0 +1,15 @@
let
nixpkgs = import <nixpkgs> {};
in
with nixpkgs;
stdenv.mkDerivation {
name = "legacy_shell";
buildInputs = [
(pkgs.writeShellScriptBin "nix-experimental" ''
exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" "$@"
'')
git
];
shellHook = ''
'';
}