File tree Expand file tree Collapse file tree 4 files changed +22
-9
lines changed Expand file tree Collapse file tree 4 files changed +22
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : " Test build nix"
2
+ on :
3
+ pull_request :
4
+ push :
5
+ jobs :
6
+ tests :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - uses : cachix/install-nix-action@v27
11
+ with :
12
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
13
+ - run : nix build
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ assets/*.ttf
3
3
assets /* .ttf:Zone.Identifier
4
4
assets /* .cast
5
5
/release
6
+ /result
6
7
** /* .deb
Original file line number Diff line number Diff line change 1
1
{ pkgs ? import <nixpkgs> { } } :
2
- pkgs . rustPlatform . buildRustPackage rec {
2
+ pkgs . rustPlatform . buildRustPackage {
3
3
pname = "nyaa" ;
4
- version = "0.9.0" ;
5
-
6
- # src = fetchFromGitHub {
7
- # owner = "Beastwick18";
8
- # repo = "nyaa";
9
- # rev = "v${version}";
10
- # hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
11
- # };
4
+ version =
5
+ ( builtins . fromTOML (
6
+ builtins . readFile ./Cargo.toml
7
+ ) )
8
+ . package
9
+ . version ;
12
10
13
11
cargoLock . lockFile = ./Cargo.lock ;
14
12
src = pkgs . lib . cleanSource ./. ;
Original file line number Diff line number Diff line change 14
14
packages = forAllSystems ( system : {
15
15
default = pkgsFor . ${ system } . callPackage ./default.nix { } ;
16
16
} ) ;
17
+
17
18
devShells = forAllSystems ( system : {
18
19
default = pkgsFor . ${ system } . callPackage ./shell.nix { } ;
19
20
} ) ;
You can’t perform that action at this time.
0 commit comments