Skip to content

Commit

Permalink
build(nix): combine package declaration & expression
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jun 8, 2024
1 parent 72953ff commit da4135b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 34 deletions.
46 changes: 38 additions & 8 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,41 @@
{
pkgs ? import <nixpkgs> {
inherit system;
config = { };
overlays = [ ];
},
pkgs ?
import <nixpkgs> {
inherit system;
config = {};
overlays = [];
},
system ? builtins.currentSystem,
}:
{
catwalk = pkgs.callPackage ./nix/package.nix { };
}: {
catwalk = pkgs.callPackage (
{
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "catppuccin-catwalk";
inherit ((lib.importTOML ./Cargo.toml).package) version;

src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./src
./LICENSE
]
);
};

cargoLock.lockFile = ./Cargo.lock;

meta = {
homepage = "https://github.com/catppuccin/catwalk";
description = "🚶 Soothing pastel previews for the high-spirited!";
license = lib.licenses.mit;
mainProgram = "catwalk";
};
}
) {};
}
26 changes: 0 additions & 26 deletions nix/package.nix

This file was deleted.

0 comments on commit da4135b

Please sign in to comment.