My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: using crane for packaging nix application

+38 -8
+16
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "crane": { 4 + "locked": { 5 + "lastModified": 1775236976, 6 + "narHash": "sha256-gCgX+AXN7K1gAIEqcLcZHxmC+QoZcwn9m6Z9r2Az+N8=", 7 + "owner": "ipetkov", 8 + "repo": "crane", 9 + "rev": "6c23998526351a53ce734f0ac84940da988ccef1", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "ipetkov", 14 + "repo": "crane", 15 + "type": "github" 16 + } 17 + }, 3 18 "fenix": { 4 19 "inputs": { 5 20 "nixpkgs": [ ··· 37 52 }, 38 53 "root": { 39 54 "inputs": { 55 + "crane": "crane", 40 56 "fenix": "fenix", 41 57 "nixpkgs": "nixpkgs" 42 58 }
+22 -8
flake.nix
··· 10 10 url = "github:nix-community/fenix"; 11 11 inputs.nixpkgs.follows = "nixpkgs"; 12 12 }; 13 + 14 + crane.url = "github:ipetkov/crane"; # add this 13 15 }; 14 16 15 17 # Flake outputs ··· 39 41 }; 40 42 } 41 43 ); 44 + 42 45 in 43 46 { 44 47 ··· 82 85 83 86 packages = forEachSupportedSystem ( 84 87 { pkgs }: 85 - { 86 - default = pkgs.rustPlatform.buildRustPackage { 87 - pname = "fil"; 88 - version = "0.1.0"; 88 + let 89 + craneLib = inputs.crane.mkLib pkgs; 90 + 91 + src = pkgs.lib.cleanSourceWith { 89 92 src = ./.; 90 - cargoLock.lockFile = ./Cargo.lock; 91 - cargoLock.outputHashes = { 92 - "egui_graphs-0.30.0" = "sha256-mJuGENPnDeD8SDNBXZZpLwcqrKlLTxuM6yCCx+1dSko="; 93 - }; 93 + filter = path: type: (pkgs.lib.hasSuffix ".ron" path) || (craneLib.filterCargoSources path type); 94 + }; 94 95 96 + commonArgs = { 97 + inherit src; 98 + strictDeps = true; 95 99 nativeBuildInputs = [ pkgs.pkg-config ]; 96 100 buildInputs = [ pkgs.openssl ]; 97 101 }; 102 + 103 + cargoArtifacts = craneLib.buildDepsOnly commonArgs; 104 + in 105 + { 106 + default = craneLib.buildPackage ( 107 + commonArgs 108 + // { 109 + inherit cargoArtifacts; 110 + } 111 + ); 98 112 } 99 113 ); 100 114