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 1
1
{
2
2
description = "Leet your code in command-line." ;
3
3
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
+ } ;
6
8
7
9
outputs = { self , nixpkgs , utils , ... } :
8
10
utils . lib . eachDefaultSystem ( system :
22
24
23
25
package = with pkgs ; rustPlatform . buildRustPackage rec {
24
26
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 = ./. ;
31
29
32
30
inherit buildInputs nativeBuildInputs ;
33
31
46
44
} ;
47
45
} ;
48
46
in
49
- {
47
+ {
50
48
defaultPackage = package ;
51
49
overlay = final : prev : { leetcode-cli = package ; } ;
52
50
You can’t perform that action at this time.
0 commit comments