Skip to content

Commit b0c77b3

Browse files
authored
Merge pull request #5 from maxcabrajac/main_program
Set meta.mainProgram on the output derivation
2 parents cee3aff + ecac4bf commit b0c77b3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ flash # flasher script
7575
fw.elf # firmware files
7676
fw.hex # ...
7777
$ # flash the compiled firmware
78-
$ sudo ./result/bin/flash
78+
$ sudo ./result/bin/flash # or nix run
7979
Flashing /nix/store/b5jnf80...-nixcaps-compile/bin/fw.hex ...
8080
Teensy Loader, Command Line, Version 2.3
8181
Read "/nix/store/b5jnf80...-nixcaps-compile/bin/fw.hex": 28074 bytes, 87.0% usage

nixcaps.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@
5656
buildDrv
5757
(lib.optional (!isNull flash) flashDrv)
5858
];
59+
meta.mainProgram = "flash";
5960
};
6061
}

0 commit comments

Comments
 (0)