-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (36 loc) · 947 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
44
# __ _ _ _
# / _| | __ _| | _____ _ __ (_)_ __
# | |_| |/ _` | |/ / _ \ | '_ \| \ \/ /
# | _| | (_| | < __/_| | | | |> <
# |_| |_|\__,_|_|\_\___(_)_| |_|_/_/\_\
#
# Maintainer: ohSystemmm
# Contributor: Y2kun
{
description = "A simple CLI tool for tracking anime and manga progress.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: let
pkgs = import nixpkgs {
system = builtins.currentSystem;
};
in {
defaultPackage.${pkgs.system} = pkgs.stdenv.mkDerivation {
pname = "ani-track";
version = "0.5.0";
src = ./.;
buildInputs = [ pkgs.go_1_20 ];
buildPhase = ''
go build -o ani-track
'';
installPhase = ''
mkdir -p $out/bin
mv ani-track $out/bin/
'';
};
devShell.${pkgs.system} = pkgs.mkShell {
buildInputs = [ pkgs.go_1_20 ];
};
};
}