1
1
Fork 0
mirror of https://github.com/the-nix-way/dev-templates synced 2024-05-10 12:46:17 +02:00
This commit is contained in:
Luc Perkins 2022-08-20 14:47:43 +03:00
parent e788a09be9
commit bf45826289
No known key found for this signature in database
GPG Key ID: 4F102D0C16E232F2
25 changed files with 57 additions and 31 deletions

View File

@ -21,7 +21,8 @@
pkgs = import nixpkgs { inherit config system; };
inherit (pkgs) boot clojure leiningen mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ boot clojure leiningen ];

View File

@ -11,7 +11,8 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) cue mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ cue ];

View File

@ -37,7 +37,8 @@
dhallToolsLinux = optionals isLinux (mkDhallTools [ "csv" "text" ]);
dhallTools = dhallToolsCommon ++ dhallToolsLinux;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ dhall ] ++ dhallTools;

View File

@ -21,7 +21,8 @@
linuxDeps = optionals isLinux [ gigalixir inotify-tools libnotify ];
darwinDeps = optionals isDarwin [ terminal-notifier ]
++ [ CoreFoundation CoreServices ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ elixir elixir_ls ] ++ linuxDeps ++ darwinDeps;

View File

@ -13,7 +13,8 @@
inherit (pkgs) mkShell;
elm = pkgs.elmPackages.elm;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ elm ] ++ (with pkgs; [ elm2nix ]);

View File

@ -141,7 +141,8 @@
)
done
'';
in {
in
{
devShells = { default = mkShell { buildInputs = [ format update ]; }; };
});
}

View File

@ -13,7 +13,8 @@
gleamPkg = pkgs.gleam;
inherit (pkgs) mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ gleamPkg ];

View File

@ -13,7 +13,8 @@
goPkg = pkgs.go_1_17;
inherit (pkgs) mkShellNoCC;
in {
in
{
apps.default = {
type = "app";
program = "${goPkg}/bin/go";

View File

@ -13,7 +13,8 @@
goPkg = pkgs.go_1_18;
inherit (pkgs) mkShellNoCC;
in {
in
{
apps.default = {
type = "app";
program = "${goPkg}/bin/go";

View File

@ -28,7 +28,8 @@
];
relatedTools = with pkgs; [ terragrunt ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = hashiTools ++ relatedTools;

View File

@ -11,7 +11,8 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) cabal-install ghc mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ cabal-install ghc ];

View File

@ -21,7 +21,8 @@
java = jdk;
buildTools = with pkgs; [ ant gradle maven ];
inherit (pkgs) mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ java ] ++ buildTools;

View File

@ -25,7 +25,8 @@
kotlin = pkgs.kotlin;
buildTools = with pkgs; [ gradle ];
otherTools = with pkgs; [ gcc ncurses patchelf zlib ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ kotlin ] ++ buildTools ++ otherTools;

View File

@ -11,7 +11,8 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) mkShell nickel;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ nickel ];

View File

@ -11,7 +11,8 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) mkShell nim;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ nim ];

View File

@ -24,7 +24,8 @@
];
inherit (pkgs) mkShell;
in {
in
{
devShells = { default = mkShell { buildInputs = nixRelatedTools; }; };
});
}

View File

@ -16,7 +16,8 @@
};
overlays = [ nodeOverlay ];
pkgs = import nixpkgs { inherit overlays system; };
in {
in
{
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs; [ node2nix nodejs pnpm yarn ];

View File

@ -14,7 +14,8 @@
ocaml = pkgs.ocamlPackages.ocaml;
ocamlTools = with pkgs.ocamlPackages;
[ dune_3 odoc ] ++ (with pkgs; [ ocamlformat ]);
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ ocaml ] ++ ocamlTools;

View File

@ -13,7 +13,8 @@
inherit (pkgs) conftest mkShell open-policy-agent;
opaTools = [ conftest open-policy-agent ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = opaTools;

View File

@ -11,7 +11,8 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) buf mkShell protobuf;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ buf protobuf ];

View File

@ -20,7 +20,8 @@
pythonTools = with pkgs;
[ virtualenv ] ++ (with pkgs.python311Packages; [ pip ]);
nixTools = [ machNix ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ python ] ++ pythonTools ++ nixTools;

View File

@ -13,7 +13,8 @@
inherit (pkgs) mkShell;
ruby = pkgs.ruby_3_1;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ ruby ];

View File

@ -18,18 +18,20 @@
inherit (pkgs.lib) optionals;
inherit (pkgs.stdenv) isLinux;
rust = if builtins.pathExists ./rust-toolchain.toml then
rust-bin.fromRustupToolchainFile ./rust-toolchain.toml
else if builtins.pathExists ./rust-toolchain then
rust-bin.fromRustupToolchainFile ./rust-toolchain
else
rust-bin.stable.latest.default;
rust =
if builtins.pathExists ./rust-toolchain.toml then
rust-bin.fromRustupToolchainFile ./rust-toolchain.toml
else if builtins.pathExists ./rust-toolchain then
rust-bin.fromRustupToolchainFile ./rust-toolchain
else
rust-bin.stable.latest.default;
deps = with pkgs; [ openssl pkgconfig ];
rustTools = with pkgs;
[ cargo-audit cargo-deny cargo-cross rust-analyzer ]
++ optionals isLinux (with pkgs; [ cargo-watch ]);
in {
in
{
packages.default = rust;
devShells = {

View File

@ -25,7 +25,8 @@
scala = pkgs.scala_3;
buildTools = with pkgs; [ sbt ];
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ scala ] ++ buildTools;

View File

@ -13,7 +13,8 @@
zigPkg = pkgs.zig;
inherit (pkgs) mkShell;
in {
in
{
devShells = {
default = mkShell {
buildInputs = [ zigPkg ];