Skip to content

Commit

Permalink
Misc: Remove package.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
fromtheeast710 committed Aug 12, 2024
1 parent 715c2aa commit 7f9f5e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
16 changes: 15 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,28 @@

outputs = { self, nixpkgs, rust-overlay }: let
system = "x86_64-linux";

pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};

toolchain = pkgs.rust-bin.fromRustupToolchainFile ./Toolchain.toml;

builder = { lib, rustPlatform }: let
toml = (lib.importTOML ./Cargo.toml).package;
in rustPlatform.buildRustPackage {
inherit (toml) version;

pname = toml.name;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;

meta.mainProgram = "lstodo";
};
in with pkgs; {
packages.${system} = {
lstodo = pkgs.callPackage ./package.nix { };
lstodo = pkgs.callPackage builder { };
default = self.packages.${system}.lstodo;
};

Expand Down
12 changes: 0 additions & 12 deletions package.nix

This file was deleted.

0 comments on commit 7f9f5e2

Please sign in to comment.