mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
--- a/Makefile 2024-04-20 10:28:36.697545022 +0300
|
|
+++ b/Makefile 2024-04-20 10:37:55.591657540 +0300
|
|
@@ -7,8 +7,10 @@
|
|
shards build --debug -Dpreview_mt
|
|
|
|
configure:
|
|
- shards install
|
|
- ./bin/gi-crystal
|
|
+ mkdir bin/
|
|
+ cd lib/gi-crystal && shards build -Dpreview_mt --release --no-debug
|
|
+ cd ../..
|
|
+ cp lib/gi-crystal/bin/gi-crystal bin/ && ./bin/gi-crystal
|
|
|
|
rtfm:
|
|
shards build --release -Dpreview_mt rtfm
|
|
@@ -16,10 +18,10 @@
|
|
docsets: crystal-docset gtk-docset
|
|
|
|
crystal-docset:
|
|
- crystal run src/doc2dash/create_crystal_docset.cr
|
|
+ crystal src/doc2dash/create_crystal_docset.cr "@crystal@/share/doc/crystal/api"
|
|
|
|
gtk-docset:
|
|
- crystal run src/doc2dash/create_gtk_docset.cr
|
|
+ crystal src/doc2dash/create_gtk_docset.cr "gtk-doc/"
|
|
|
|
test: crystal-docset gtk-docset
|
|
crystal spec
|
|
@@ -28,8 +30,10 @@
|
|
install -D -m 0755 bin/rtfm $(DESTDIR)$(PREFIX)/bin/rtfm
|
|
install -D -m 0644 data/io.github.hugopl.rtfm.desktop $(DESTDIR)$(PREFIX)/share/applications/io.github.hugopl.rtfm.desktop
|
|
install -D -m 0644 data/icons/hicolor/scalable/apps/io.github.hugopl.rtfm.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps/io.github.hugopl.rtfm.svg
|
|
+ gtk4-update-icon-cache --ignore-theme-index $(PREFIX)/share/icons/hicolor
|
|
# Settings schema
|
|
install -D -m644 data/io.github.hugopl.rtfm.gschema.xml $(DESTDIR)$(PREFIX)/share/glib-2.0/schemas/io.github.hugopl.rtfm.gschema.xml
|
|
+ glib-compile-schemas $(DESTDIR)$(PREFIX)/share/glib-2.0/schemas
|
|
# docsets
|
|
mkdir -p $(DESTDIR)$(PREFIX)/share/rtfm/docsets/
|
|
cp -r data/Crystal.docset $(DESTDIR)$(PREFIX)/share/rtfm/docsets/
|