flake reorg

This commit is contained in:
Robin Appelman 2024-01-14 18:45:16 +01:00
commit a603ec8cfa
9 changed files with 666 additions and 451 deletions

18
package.nix Normal file
View file

@ -0,0 +1,18 @@
{
stdenv,
rustPlatform,
lib,
}: let
inherit (lib.sources) sourceByRegex;
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
in
rustPlatform.buildRustPackage rec {
pname = "demostf-backup";
version = "0.1.0";
inherit src;
cargoLock = {
lockFile = ./Cargo.lock;
};
}