File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 11{
22 description = "Leet your code in command-line." ;
33
4- inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
5- inputs . utils . url = "github:numtide/flake-utils" ;
4+ inputs = {
5+ nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
6+ utils . url = "github:numtide/flake-utils" ;
7+ } ;
68
79 outputs = { self , nixpkgs , utils , ... } :
810 utils . lib . eachDefaultSystem ( system :
2224
2325 package = with pkgs ; rustPlatform . buildRustPackage rec {
2426 pname = "leetcode-cli" ;
25- version = "0.4.3" ;
26- src = fetchCrate {
27- inherit pname version ;
28- sha256 = "sha256-y5zh93WPWSMDXqYangqrxav+sC0b0zpFIp6ZIew6KMo=" ;
29- } ;
30- cargoSha256 = "sha256-VktDiLsU+GOsa6ba9JJZGEPTavSKp+aSZm2dfhPEqMs=" ;
27+ version = "git" ;
28+ src = ./. ;
3129
3230 inherit buildInputs nativeBuildInputs ;
3331
4644 } ;
4745 } ;
4846 in
49- {
47+ {
5048 defaultPackage = package ;
5149 overlay = final : prev : { leetcode-cli = package ; } ;
5250
You can’t perform that action at this time.
0 commit comments