-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
24 lines (21 loc) · 678 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
{
description = "kittysay - cowsay, but with a cute kitty :3";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
...
}: let
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "x86_64-darwin" "i686-linux" "aarch64-linux" "aarch64-darwin"];
pkgsForEach = nixpkgs.legacyPackages;
version = self.shortRev or "dirty";
in {
packages = forAllSystems (system: rec {
default = pkgsForEach.${system}.callPackage ./default.nix {inherit version;};
kittysay = default;
});
devShells = forAllSystems (system: {
default = pkgsForEach.${system}.callPackage ./shell.nix {};
});
};
}