File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change 35
35
# it is possible to streamline calling packages with a single function
36
36
# that takes name as an argument, and handles default inherits.
37
37
mkPlugin = name :
38
- callPackage ./nix/plugins/default .nix {
38
+ callPackage ./nix/packages/plugin .nix {
39
39
inherit inputs lockFile ;
40
40
inherit name ;
41
41
} ;
44
44
45
45
# By default the anyrun package is built without any plugins
46
46
# as per the `dontBuildPlugins` arg.
47
- anyrun = callPackage ./nix/default .nix { inherit inputs lockFile ; } ;
48
- anyrun-with-all-plugins = callPackage ./nix/default .nix {
47
+ anyrun = callPackage ./nix/packages/anyrun .nix { inherit inputs lockFile ; } ;
48
+ anyrun-with-all-plugins = callPackage ./nix/packages/anyrun .nix {
49
49
inherit inputs lockFile ;
50
50
dontBuildPlugins = false ;
51
51
} ;
72
72
default = pkgs . mkShell {
73
73
inputsFrom = builtins . attrValues self' . packages ;
74
74
packages = with pkgs ; [
75
- rustc # rust compiler
75
+ rustc
76
76
gcc
77
- cargo # rust package manager
78
- clippy # opinionated rust formatter
77
+ cargo
78
+ clippy
79
+ rustfmt
79
80
] ;
80
81
} ;
81
82
82
83
nix = pkgs . mkShellNoCC {
83
84
packages = with pkgs ; [
84
- alejandra # nix formatter
85
- rustfmt # rust formatter
86
- statix # lints and suggestions
87
- deadnix # clean up unused nix code
85
+ alejandra # formatter
86
+ statix # linter
87
+ deadnix # dead-code finder
88
88
] ;
89
89
} ;
90
90
} ;
95
95
96
96
flake = {
97
97
homeManagerModules = {
98
- anyrun = import ./nix/hm-module .nix self ;
98
+ anyrun = import ./nix/modules/home-manager .nix self ;
99
99
default = self . homeManagerModules . anyrun ;
100
100
} ;
101
101
} ;
Original file line number Diff line number Diff line change 2
2
config ,
3
3
pkgs ,
4
4
lib ,
5
- hm ,
6
5
...
7
6
} : let
8
- cfg = config . programs . anyrun ;
9
-
10
- defaultPackage = self . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
11
-
12
7
inherit ( builtins ) map toJSON toString substring stringLength ;
13
8
inherit ( lib . modules ) mkIf mkMerge ;
14
9
inherit ( lib . options ) mkOption mkEnableOption literalExpression ;
@@ -17,6 +12,9 @@ self: {
17
12
inherit ( lib . strings ) toLower toUpper replaceStrings ;
18
13
inherit ( lib . trivial ) boolToString ;
19
14
inherit ( lib . types ) nullOr package submodule int float listOf either str enum lines bool attrs ;
15
+
16
+ defaultPackage = self . packages . ${ pkgs . stdenv . hostPlatform . system } . default ;
17
+ cfg = config . programs . anyrun ;
20
18
in {
21
19
meta . maintainers = with lib . maintainers ; [ n3oney NotAShelf ] ;
22
20
Original file line number Diff line number Diff line change 22
22
} : let
23
23
inherit ( builtins ) fromTOML readFile ;
24
24
25
- cargoToml = fromTOML ( readFile ../anyrun/Cargo.toml ) ;
25
+ cargoToml = fromTOML ( readFile ../../ anyrun/Cargo.toml ) ;
26
26
pname = cargoToml . package . name ;
27
27
version = cargoToml . package . version ;
28
28
in
File renamed without changes.
You can’t perform that action at this time.
0 commit comments