-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
43 lines (38 loc) · 991 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
description = "Semantic versioning without any config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# Lock to version: 0.14.0
dagger = {
url = "github:dagger/nix?rev=9852fdddcdcb52841275ffb6a39fa1524d538d5a";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, flake-utils, dagger }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
dagger.packages.${system}.dagger
git
go
go-task
goreleaser
vhs
];
};
apps.default = {
type = "app";
program = "${pkgs.callPackage ./. {}}/bin/nsv";
};
packages.default = pkgs.callPackage ./. {};
}
);
}