Skip to content

Commit 722e6a9

Browse files
committed
feat(nix): Add Flake
Signed-off-by: Steffen Vogel <[email protected]>
1 parent 4568679 commit 722e6a9

File tree

3 files changed

+96
-1
lines changed

3 files changed

+96
-1
lines changed

.reuse/dep5

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ Upstream-Name: go-rosenpass
33
Upstream-Contact: Steffen Vogel <[email protected]>
44
Source: https://github.com/cunicu/go-rosenpass
55

6-
Files: go.sum .renovaterc.json testdata/**
6+
Files: flake.lock go.sum .renovaterc.json testdata/**
77
Copyright: 2023 Steffen Vogel <[email protected]>
88
License: CC0-1.0

flake.lock

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2023-2024 Steffen Vogel <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
{
4+
inputs = {
5+
flake-utils.url = "github:numtide/flake-utils";
6+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
7+
};
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
flake-utils,
12+
}:
13+
flake-utils.lib.eachDefaultSystem
14+
(
15+
system: let
16+
pkgs = nixpkgs.legacyPackages.${system};
17+
in {
18+
devShell = pkgs.mkShell {
19+
buildInputs = with pkgs;
20+
[
21+
go
22+
golangci-lint
23+
reuse
24+
];
25+
26+
packages = with pkgs; [
27+
rosenpass
28+
];
29+
};
30+
31+
formatter = nixpkgs.nixfmt-rfc-style;
32+
}
33+
);
34+
}

0 commit comments

Comments
 (0)