-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
40 lines (37 loc) · 899 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
{
description = "A fuck-up flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
inherit (nixpkgs) lib;
packages = self.packages.${system};
in
{
packages = {
form = pkgs.callPackage ./package.nix { };
default = self.packages.${system}.form;
};
apps = {
default = {
type = "app";
program = toString (
pkgs.writeShellScript "open-fuckup-assessment" ''
exec ${lib.getExe' pkgs.xdg-utils "xdg-open"} ${packages.default}
''
);
};
};
}
);
}