File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change 99 inherit ( toml ) version ;
1010in
1111 rustPlatform . buildRustPackage . override { stdenv = stdenvAdapters . useMoldLinker llvm . stdenv ; } {
12- RUSTFLAGS = "-C link-arg=-fuse-ld=mold" ;
13-
1412 inherit pname version ;
15-
16- src = builtins . path {
17- name = "${ pname } -${ version } " ;
18- path = lib . sources . cleanSource ../. ;
19- } ;
13+ src = let
14+ fs = lib . fileset ;
15+ s = ../. ;
16+ in
17+ fs . toSource {
18+ root = s ;
19+ fileset = fs . unions [
20+ ( fs . fileFilter ( file : builtins . any file . hasExt [ "rs" ] ) ( s + /src ) )
21+ ( s + /Cargo.lock )
22+ ( s + /Cargo.toml )
23+ ] ;
24+ } ;
2025
2126 cargoLock . lockFile = ../Cargo.lock ;
2227 enableParallelBuilding = true ;
28+ env . RUSTFLAGS = "-C link-arg=-fuse-ld=mold" ;
2329
2430 meta = {
25- description = "A microscopic fetch script in Rust, for NixOS systems" ;
31+ description = "Microscopic fetch script in Rust, for NixOS systems" ;
2632 homepage = "https://github.com/NotAShelf/microfetch" ;
2733 license = lib . licenses . gpl3Only ;
28- maintainers = with lib . maintainers ; [ NotAShelf ] ;
34+ maintainers = [ lib . maintainers . NotAShelf ] ;
2935 mainProgram = "microfetch" ;
3036 } ;
3137 }
You can’t perform that action at this time.
0 commit comments