File tree 6 files changed +41
-42
lines changed
6 files changed +41
-42
lines changed Original file line number Diff line number Diff line change 1
- (lang dune 3 .0 )
1
+ (lang dune 3 .8 )
File renamed without changes.
Original file line number Diff line number Diff line change 16
16
let pkgs = nixpkgs . legacyPackages . ${ system } ; in
17
17
{
18
18
packages = {
19
- inherit ( pkgs . ocamlPackages . callPackage ./nix {
19
+ default = pkgs . callPackage ./nix {
20
20
inherit nix-filter ;
21
21
doCheck = true ;
22
- } ) package ;
22
+ } ;
23
23
} ;
24
24
25
25
devShells = {
26
26
default = pkgs . mkShell {
27
- inputsFrom = with self . packages . ${ system } ; [
28
- package
27
+ inputsFrom = [
28
+ self . packages . ${ system } . default
29
29
] ;
30
30
31
31
nativeBuildInputs = with pkgs . ocamlPackages ; [
Original file line number Diff line number Diff line change 6
6
, static ? false
7
7
, doCheck
8
8
} :
9
- with ocamlPackages ; {
10
- package = buildDunePackage {
11
- pname = "package " ;
12
- version = "1.0.0" ;
9
+ with ocamlPackages ;
10
+ buildDunePackage {
11
+ pname = "example " ;
12
+ version = "1.0.0" ;
13
13
14
- src = with nix-filter . lib ;
15
- filter {
16
- # Root of the project relative to this file
17
- root = ./.. ;
18
- # If no include is passed, it will include all the paths.
19
- include = [
20
- # Include the "src" path relative to the root.
21
- "src"
22
- "test"
23
- # Include this specific path. The path must be under the root.
24
- ../package .opam
25
- ../dune-project
26
- ] ;
27
- } ;
14
+ src = with nix-filter . lib ;
15
+ filter {
16
+ # Root of the project relative to this file
17
+ root = ./.. ;
18
+ # If no include is passed, it will include all the paths.
19
+ include = [
20
+ # Include the "src" path relative to the root.
21
+ "src"
22
+ "test"
23
+ # Include this specific path. The path must be under the root.
24
+ ../example .opam
25
+ ../dune-project
26
+ ] ;
27
+ } ;
28
28
29
- checkInputs = [
30
- # Put test dependencies here
31
- alcotest
32
- ] ;
29
+ checkInputs = [
30
+ # Put test dependencies here
31
+ alcotest
32
+ ] ;
33
33
34
- propagatedBuildInputs = [
35
- # Put dependencies here if you're creating a library
36
- ] ;
34
+ propagatedBuildInputs = [
35
+ # Put dependencies here if you're creating a library
36
+ ] ;
37
37
38
- buildInputs = [
39
- # Put build-time dependencies here
40
- ] ;
38
+ buildInputs = [
39
+ # Put build-time dependencies here
40
+ ] ;
41
41
42
- inherit doCheck ;
42
+ inherit doCheck ;
43
43
44
- meta = {
45
- description = "Describe your project here" ;
46
- # license = stdenv.lib.licenses.bsd3;
47
- } ;
44
+ meta = {
45
+ description = "Describe your project here" ;
46
+ # license = stdenv.lib.licenses.bsd3;
48
47
} ;
49
48
}
Original file line number Diff line number Diff line change 1
1
(executable
2
2
(name main)
3
- (public_name package )
4
- (libraries package ))
3
+ (public_name example )
4
+ (libraries example ))
Original file line number Diff line number Diff line change 1
1
(library
2
- (name package )
3
- (public_name package ))
2
+ (name example )
3
+ (public_name example ))
You can’t perform that action at this time.
0 commit comments