forked from go-musicfox/go-musicfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
63 lines (59 loc) · 1.84 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devenv.url = "github:cachix/devenv";
nix2container.url = "github:nlewo/nix2container";
nix2container.inputs.nixpkgs.follows = "nixpkgs";
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
mission-control.url = "github:Platonic-Systems/mission-control";
flake-root.url = "github:srid/flake-root";
};
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devenv.flakeModule
inputs.flake-root.flakeModule
inputs.mission-control.flakeModule
inputs.flake-parts.flakeModules.easyOverlay
];
systems = nixpkgs.lib.systems.flakeExposed;
perSystem = { config, self', inputs', pkgs, system, final, ... }: {
mission-control.scripts = {
run = {
description = "Run app";
exec = "go run ./cmd/musicfox.go";
category = "Dev Tools";
};
};
packages.default = pkgs.callPackage ./deploy/nix { };
overlayAttrs = {
inherit (config.packages) go-musicfox;
};
packages.go-musicfox = pkgs.callPackage ./deploy/nix { };
devShells.default = pkgs.mkShell {
inputsFrom = [
config.flake-root.devShell
config.mission-control.devShell
self'.devShells.my-shell
];
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs;[
alsa-lib
flac
];
};
devenv.shells.my-shell = {
languages.go = {
enable = true;
};
packages = [
];
enterShell = ''
echo $'\e[1;32mWelcom to go-musicfox project~\e[0m'
'';
};
};
};
}