-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
59 lines (52 loc) · 1.67 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
{
description = "kitty";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
# reflection-lib.url = "git+ssh://git@github.com/m0rphism/reflection-lib";
};
outputs = { self, nixpkgs, reflection-lib, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowBroken = true;
zathura.useMupdf = true;
};
};
lib = nixpkgs.lib;
in {
packages.x86_64-linux.default = self.packages.x86_64-linux.kitty;
packages.x86_64-linux.kitty = pkgs.agdaPackages.mkDerivation {
version = "0.1.0";
pname = "kitty";
src = ./.;
buildInputs = with pkgs.agdaPackages; [
standard-library
# reflection-lib.packages.x86_64-linux.reflection-lib
];
libraryName = "kitty"; # has to match the .agda-lib
everythingFile = "src/Kitty/Everything.agda"; # defaults to "Everything.agda"
# libraryFile = ""; # defaults to `${libraryName}.agda-lib`
# If this library does not use an Everything.agda file and instead has a
# Makefile, then there is no need to set everythingFile and we set a custom
# buildPhase:
#
# buildPhase = ''
# patchShebangs find-deps.sh
# make
# '';
# Required to allow debug output, e.g. from agda reflection, to contain unicode chars.
# Otherwise the build crashes...
LC_ALL="en_US.UTF-8";
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
meta = {
description = ".";
# homepage = http://;
license = "GPLv2";
# maintainers = [ stdenv.lib.maintainers.m0rphism ];
};
};
};
}