Skip to content

Commit

Permalink
Reuse nixpkgs recipe as suggested by @tirimia
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-zahner committed Dec 20, 2024
1 parent 38645a1 commit 1501b37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 39 deletions.
37 changes: 0 additions & 37 deletions default.nix

This file was deleted.

10 changes: 8 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{
nixpkgs,
rust-overlay,
self,
...
}:
let
Expand Down Expand Up @@ -51,10 +52,15 @@
system:
let
pkgs = nixpkgs.legacyPackages.${system};
code = import ./default.nix { inherit pkgs; };
in
{
default = code.app;
default = pkgs.lychee.overrideAttrs {
src = ./.;
version = self.rev or self.dirtyShortRev;
cargoDeps = pkgs.rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
};
}
);
};
Expand Down

0 comments on commit 1501b37

Please sign in to comment.