File tree Expand file tree Collapse file tree 5 files changed +68
-44
lines changed
Expand file tree Collapse file tree 5 files changed +68
-44
lines changed Original file line number Diff line number Diff line change 1+ name : " CI"
2+ on :
3+ pull_request :
4+ push :
5+ jobs :
6+ nix-build :
7+ runs-on : ubuntu-latest
8+ env :
9+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10+ steps :
11+ 12+ with :
13+ fetch-depth : 0
14+ - uses : cachix/install-nix-action@v14
15+ with :
16+ install_url : https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install
17+
18+ # Configure Nix to enable flakes
19+ - run : echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf
20+
21+
22+ - name : Nix Flake Check
23+ run : nix -Lv flake check
24+ - name : Build emacsNg Rust Dependency
25+ # remove when nix build is fixed
26+ continue-on-error : true
27+ run : nix -Lv build .#emacsNg-rust
28+
29+ - uses : cachix/cachix-action@v10
30+ with :
31+ name : emacsng
32+ authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
33+
34+ - name : Run Emacsng Exec
35+ run : nix -Lv develop -c -- emacs --version
Original file line number Diff line number Diff line change 9191 {
9292 name = pkgs . nvfetcher-bin . pname ;
9393 help = pkgs . nvfetcher-bin . meta . description ;
94- command = "cd $DEVSHELL_ROOT /nix; ${ pkgs . nvfetcher-bin } /bin/nvfetcher -c ./sources.toml --no-output $@; " ;
94+ command = "export NIX_PATH=nixpkgs= ${ pkgs . path } ; cd $PRJ_ROOT /nix; ${ pkgs . nvfetcher-bin } /bin/nvfetcher -c ./sources.toml $@ " ;
9595 }
9696 ] ;
9797 } ;
9898
9999
100100 apps = {
101101 emacsNg = flake-utils . lib . mkApp { drv = packages . emacsNg ; exePath = "/bin/emacs" ; } ;
102+ emacsclient = flake-utils . lib . mkApp { drv = packages . emacsNg ; exePath = "/bin/emacsclient" ; } ;
102103 } ;
103104
104105 defaultApp = apps . emacsNg ;
152153 cp -r ${ pathDir } crates
153154 sed -i 's|../crates/lisp_util|./crates/lisp_util|' Cargo.toml
154155 '' + doVersionedUpdate ;
155- sha256 = "sha256-2g+nfnEtrp2oxy/wd0+G8dfR/tufkMLAfoFzxO+jv3g =" ;
156+ sha256 = "sha256-NL4fSYdlifV15h7/mCFTHlWgBJ6r9AXqiFnBnelyab0 =" ;
156157 inherit installPhase ;
157158 } ;
158159
171172 sed -e 's/@CARGO_.*@//' Cargo.toml.in > Cargo.toml
172173 '' + doVersionedUpdate ;
173174 name = "remacsSrc" ;
174- sha256 = "sha256-McGugFJUwgpw9bK/sIlzryBNz7y0quo+oQSBET2+Pc4 =" ;
175+ sha256 = "sha256-ice5d4a6vyaxCO4mRjxGJsEvtdX7NKvFmoJK5CiE3TA =" ;
175176 inherit installPhase ;
176177 } ;
177178
Original file line number Diff line number Diff line change 11# This file was generated by nvfetcher, please do not modify it manually.
2- { fetchgit , fetchurl } :
2+ { fetchgit , fetchurl , fetchFromGitHub } :
33{
44 emacs-ng = {
55 pname = "emacs-ng" ;
6- version = "93f38491a060f06ae4b85c8546b624a00e4750dc" ;
7- src = fetchgit {
8- url = "https://github.com/emacs-ng/emacs-ng" ;
9- rev = "93f38491a060f06ae4b85c8546b624a00e4750dc" ;
6+ version = "b4bd1b8232a7d63690e48fc1946516265c9f2c83" ;
7+ src = fetchFromGitHub ( {
8+ owner = "emacs-ng" ;
9+ repo = "emacs-ng" ;
10+ rev = "b4bd1b8232a7d63690e48fc1946516265c9f2c83" ;
1011 fetchSubmodules = true ;
11- deepClone = false ;
12- leaveDotGit = false ;
13- sha256 = "181gpfc4qlm9dcyj19gqhxlhrqnn9nqw5ypf6isv733dpb0gzf3v" ;
14- } ;
12+ sha256 = "sha256-wpWj9cvGcpWc24835Z4X5CZUKnn79jSCv49yJ1J3eVA=" ;
13+ } ) ;
1514 } ;
1615}
Original file line number Diff line number Diff line change @@ -41,17 +41,6 @@ with lib;
4141 } ;
4242
4343 config = {
44- env = [ {
45- # Used by tools like rust-analyzer
46- name = "RUST_SRC_PATH" ;
47- value =
48- let rust-src = rust-bin . nightly . "${ date } " . default . override {
49- extensions = [ "rust-src" ] ;
50- } ;
51- in
52- ( toString rust-src ) + "/lib/rustlib/src/rust/library" ;
53- } ] ;
54-
5544 devshell . packages = map ( tool : cfg . rustPackages . ${ tool } ) cfg . rustPackagesSet
5645 ++ map ( tool : cfg . rustOverlay . ${ tool } ) cfg . rustOverlaySet ++ ( with pkgs ; [
5746 #custom nixpkgs packages
You can’t perform that action at this time.
0 commit comments