first commit
This commit is contained in:
15
pages/Tech/NixOS/Trick - shell with version per pkg.md
Normal file
15
pages/Tech/NixOS/Trick - shell with version per pkg.md
Normal file
@@ -0,0 +1,15 @@
|
||||
tags:: nixos
|
||||
|
||||
```bash
|
||||
nix-shell -E '
|
||||
let
|
||||
pkgsA = (import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/141439f6f11537ee349a58aaf97a5a5fc072365c.tar.gz) {});
|
||||
pkgsB = (import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/7d7622909a38a46415dd146ec046fdc0f3309f44.tar.gz) {});
|
||||
in
|
||||
pkgsA.mkShell {
|
||||
buildInputs = [
|
||||
pkgsA.ktlint
|
||||
pkgsB.jq
|
||||
];
|
||||
}'
|
||||
```
|
||||
Reference in New Issue
Block a user