ci: Refactor Nix shell files

This commit is contained in:
Jonas Nick 2021-01-29 21:04:10 +00:00 committed by Tim Ruffing
parent 2480e55c8f
commit cc2a5451dc
3 changed files with 20 additions and 18 deletions

12
ci/mkshell.nix Normal file
View File

@ -0,0 +1,12 @@
{ pkgs }:
with pkgs;
mkShell {
buildInputs = [
bash file pkgconfig autoconf automake libtool gmp valgrind clang gcc
];
shellHook = ''
echo Running nix-shell with nixpkgs version: $(nix eval --raw nixpkgs.lib.version)
'';
}

View File

@ -1,9 +1,4 @@
with (import <nixpkgs> {}).pkgsi686Linux; let
mkShell { pkgs = (import <nixpkgs> {}).pkgsi686Linux;
buildInputs = [ in
bash file pkgconfig autoconf automake libtool gmp valgrind clang gcc import ./mkshell.nix { inherit pkgs; }
];
shellHook = ''
echo Running nix-shell with nixpkgs version: $(nix eval --raw nixpkgs.lib.version)
'';
}

View File

@ -1,9 +1,4 @@
with (import <nixpkgs> {}); let
mkShell { pkgs = (import <nixpkgs> {});
buildInputs = [ in
bash file pkgconfig autoconf automake libtool gmp valgrind clang gcc import ./mkshell.nix { inherit pkgs; }
];
shellHook = ''
echo Running nix-shell with nixpkgs version: $(nix eval --raw nixpkgs.lib.version)
'';
}