This repository has no description
1{
2 inputs = {
3 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4 };
5
6 outputs =
7 { self, nixpkgs, ... }:
8 let
9 systems = [
10 "x86_64-linux"
11 "aarch64-linux"
12 ];
13 forSystems =
14 func:
15 nixpkgs.lib.genAttrs systems (
16 system:
17 func (
18 import nixpkgs {
19 inherit system;
20 overlays = [ self.overlays.default ];
21 }
22 )
23 );
24 in
25 {
26 formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; });
27
28 overlays.default = final: prev: rec {
29 colorgrab = final.callPackage ./nix/colorgrab.nix { };
30 prefon = final.callPackage ./nix/prefon.nix { };
31 scr = final.callPackage ./nix/scr.nix { };
32 thm = final.callPackage ./nix/thm.nix { };
33 vid2gif = final.callPackage ./nix/vid2gif.nix { };
34 yemou-scripts = final.symlinkJoin {
35 name = "yemou-scripts";
36 paths = [
37 colorgrab
38 prefon
39 scr
40 thm
41 vid2gif
42 ];
43 };
44 };
45
46 packages = forSystems (pkgs: {
47 colorgrab = pkgs.colorgrab;
48 default = pkgs.yemou-scripts;
49 prefon = pkgs.prefon;
50 scr = pkgs.scr;
51 thm = pkgs.thm;
52 vid2gif = pkgs.vid2gif;
53 yemou-scripts = pkgs.yemou-scripts;
54 });
55 };
56}