Skip to content

Commit

Permalink
add flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ubbabeck committed Jan 29, 2024
1 parent 60552e8 commit 0d93a7f
Show file tree
Hide file tree
Showing 15 changed files with 532 additions and 3 deletions.
5 changes: 4 additions & 1 deletion snippets/csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ Add a package reference to your local nuget package:
dotnet add package Breez.Sdk -s ./packages
```

Happy coding
Happy coding

## Nix
Use the command `nix develop`
61 changes: 61 additions & 0 deletions snippets/csharp/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions snippets/csharp/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
description = "Dotnet flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
dotnet-sdk_7
dotnetPackages.Nuget
];
};

formatter = pkgs.nixpkgs-fmt;
});
}
5 changes: 4 additions & 1 deletion snippets/dart_snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
- By running the publish-all-platforms CI in the breez-sdk repository (use dummy binaries)
- or by cloning https://github.com/breez/breez-sdk-flutter
2. Place the files in the folder `snippets/dart-snippets/packages/breez-sdk-flutter`
3. Happy coding
3. Happy coding

## Nix
Use the command `nix develop`
61 changes: 61 additions & 0 deletions snippets/dart_snippets/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions snippets/dart_snippets/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "Flutter flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
flutter
];
};

formatter = pkgs.nixpkgs-fmt;
});
}
5 changes: 4 additions & 1 deletion snippets/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
- By running the publish-all-platforms CI in the breez-sdk repository (use dummy binaries)
- or by cloning https://github.com/breez/breez-sdk-go
2. Place the files in the folder `snippets/go/packages/breez-sdk-go`
3. Happy coding
3. Happy coding

## With nix
Use the command `nix develop`
61 changes: 61 additions & 0 deletions snippets/go/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions snippets/go/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "Go flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
];
};

formatter = pkgs.nixpkgs-fmt;
});
}
61 changes: 61 additions & 0 deletions snippets/kotlin_mpp_lib/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions snippets/kotlin_mpp_lib/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
description = "Kotlin flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
kotlin
ktlint
];
};

formatter = pkgs.nixpkgs-fmt;
});
}
Loading

0 comments on commit 0d93a7f

Please sign in to comment.