File tree Expand file tree Collapse file tree 3 files changed +60
-92
lines changed Expand file tree Collapse file tree 3 files changed +60
-92
lines changed Original file line number Diff line number Diff line change 4747 url_without_query = builtins . elemAt ( lib . splitString "?" url_base ) 0 ;
4848 rev_base = builtins . elemAt parts 1 ;
4949 rev =
50- if builtins . match "^[a-fA-F0-9]{40}$" rev_base != null then
51- rev_base
52- else
53- "refs/heads/${ rev_base } " ;
50+ if builtins . match "^[a-fA-F0-9]{40}$" rev_base != null then rev_base else "refs/heads/${ rev_base } " ;
5451 in
5552 fetchgit {
5653 inherit name rev hash ;
Original file line number Diff line number Diff line change 55 nixpkgs = {
66 url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" ;
77 } ;
8- flake-utils = {
9- url = "github:numtide/flake-utils" ;
10- } ;
118 zon2nix = {
12- url = "github:jcollie/zon2nix?ref=e626a6f501069e55ce3874a63527ddf867728ac8 " ;
9+ url = "github:jcollie/zon2nix?ref=728e15a05e8f48765a64f74d5720ec0a2567fe95 " ;
1310 inputs . nixpkgs . follows = "nixpkgs" ;
14- inputs . flake-utils . follows = "flake-utils" ;
1511 } ;
1612 } ;
1713
18- outputs = {
19- nixpkgs ,
20- flake-utils ,
21- zon2nix ,
22- ...
23- } : let
24- in
25- flake-utils . lib . eachDefaultSystem (
26- system : let
27- pkgs = import nixpkgs {
14+ outputs =
15+ {
16+ nixpkgs ,
17+ zon2nix ,
18+ ...
19+ } :
20+ let
21+ makePackages =
22+ system :
23+ import nixpkgs {
2824 inherit system ;
2925 } ;
30- gir_path = [
31- pkgs . gdk-pixbuf
32- pkgs . gexiv2
33- pkgs . glib
34- pkgs . gobject-introspection
35- pkgs . graphene
36- pkgs . gtk4
37- pkgs . harfbuzz
38- pkgs . libadwaita
39- pkgs . libpanel
40- pkgs . libportal
41- pkgs . libportal-gtk4
42- pkgs . pango
43- pkgs . librsvg
44- ] ;
45- in {
46- devShells . default = pkgs . mkShell {
47- name = "ghostty-gobject" ;
48- packages =
49- [
50- pkgs . alejandra
26+ forAllSystems = (
27+ function :
28+ nixpkgs . lib . genAttrs [
29+ "aarch64-linux"
30+ "aarch64-darwin"
31+ "x86_64-linux"
32+ "x86_64-darwin"
33+ ] ( system : function ( makePackages system ) )
34+ ) ;
35+ in
36+ {
37+ devShells = forAllSystems ( pkgs : {
38+ default =
39+ let
40+ gir_path = [
41+ pkgs . gdk-pixbuf
42+ pkgs . gexiv2
43+ pkgs . glib
44+ pkgs . gobject-introspection
45+ pkgs . graphene
46+ pkgs . gtk4
47+ pkgs . harfbuzz
48+ pkgs . libadwaita
49+ pkgs . libpanel
50+ pkgs . libportal
51+ pkgs . libportal-gtk4
52+ pkgs . pango
53+ pkgs . librsvg
54+ ] ;
55+ in
56+ pkgs . mkShell {
57+ name = "ghostty-gobject" ;
58+ packages = [
5159 pkgs . gh
5260 pkgs . gnutar
5361 pkgs . libxml2
5462 pkgs . libxslt
5563 pkgs . minisign
56- pkgs . nodePackages . prettier
64+ pkgs . nixfmt-rfc-style
5765 pkgs . pinact
5866 pkgs . pkg-config
5967 pkgs . zig_0_15
60- zon2nix . packages . ${ system } . zon2nix
68+ zon2nix . packages . ${ pkgs . system } . zon2nix
6169 ]
6270 ++ gir_path ;
63- LD_LIBRARY_PATH = pkgs . lib . makeLibraryPath gir_path ;
64- GIR_PATH = pkgs . lib . strings . makeSearchPathOutput "dev" "share/gir-1.0" gir_path ;
65- } ;
66- }
67- ) ;
71+ LD_LIBRARY_PATH = pkgs . lib . makeLibraryPath gir_path ;
72+ GIR_PATH = pkgs . lib . strings . makeSearchPathOutput "dev" "share/gir-1.0" gir_path ;
73+ } ;
74+ } ) ;
75+ } ;
6876}
You can’t perform that action at this time.
0 commit comments