1
- { lib
2
- , buildDotnetModule
3
- , fetchFromGitHub
4
- , glibc
5
- , zlib
6
- , gtk3
7
- , copyDesktopItems
8
- , icoutils
9
- , wrapGAppsHook3
10
- , makeDesktopItem
1
+ {
2
+ lib ,
3
+ buildDotnetModule ,
4
+ fetchFromGitHub ,
5
+ glibc ,
6
+ zlib ,
7
+ gtk3 ,
8
+ copyDesktopItems ,
9
+ icoutils ,
10
+ wrapGAppsHook3 ,
11
+ makeDesktopItem ,
11
12
} :
12
13
13
14
buildDotnetModule rec {
@@ -22,7 +23,8 @@ buildDotnetModule rec {
22
23
} ;
23
24
24
25
nugetDeps = ./deps.nix ;
25
- projectFile = "Scarab.sln" ;
26
+ projectFile = "Scarab/Scarab.csproj" ;
27
+ testProjectFile = "Scarab.Tests/Scarab.Tests.csproj" ;
26
28
executables = [ "Scarab" ] ;
27
29
28
30
preConfigureNuGet = ''
@@ -47,6 +49,8 @@ buildDotnetModule rec {
47
49
wrapGAppsHook3
48
50
] ;
49
51
52
+ doCheck = true ;
53
+
50
54
postFixup = ''
51
55
# Icons for the desktop file
52
56
icotool -x $src/Scarab/Assets/omegamaggotprime.ico
@@ -58,26 +62,28 @@ buildDotnetModule rec {
58
62
done
59
63
'' ;
60
64
61
- desktopItems = [ ( makeDesktopItem {
62
- desktopName = "Scarab" ;
63
- name = "scarab" ;
64
- exec = "Scarab" ;
65
- icon = "scarab" ;
66
- comment = meta . description ;
67
- type = "Application" ;
68
- categories = [ "Game" ] ;
69
- } ) ] ;
65
+ desktopItems = [
66
+ ( makeDesktopItem {
67
+ desktopName = "Scarab" ;
68
+ name = "scarab" ;
69
+ exec = "Scarab" ;
70
+ icon = "scarab" ;
71
+ comment = meta . description ;
72
+ type = "Application" ;
73
+ categories = [ "Game" ] ;
74
+ } )
75
+ ] ;
70
76
71
77
passthru . updateScript = ./update.sh ;
72
78
73
- meta = with lib ; {
79
+ meta = {
74
80
description = "Hollow Knight mod installer and manager" ;
75
81
homepage = "https://github.com/fifty-six/Scarab" ;
76
82
downloadPage = "https://github.com/fifty-six/Scarab/releases" ;
77
83
changelog = "https://github.com/fifty-six/Scarab/releases/tag/v${ version } " ;
78
- license = licenses . gpl3Only ;
79
- maintainers = with maintainers ; [ huantian ] ;
84
+ license = lib . licenses . gpl3Only ;
85
+ maintainers = with lib . maintainers ; [ huantian ] ;
80
86
mainProgram = "Scarab" ;
81
- platforms = platforms . linux ;
87
+ platforms = lib . platforms . linux ;
82
88
} ;
83
89
}
0 commit comments