Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,25 @@
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
rust-overlay,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};

buildInputs = with pkgs; [ ];

buildInputs = with pkgs; [
openssl
];

nativeBuildInputs = with pkgs; [
rust-bin.stable.latest.default
Expand All @@ -41,15 +51,18 @@
wrapProgram $out/bin/typy \
--run "mkdir -p ~/.local/share/typy" \
--run "cp -n $out/share/typy/english.txt ~/.local/share/typy/english.txt"
'';
'';

meta = with pkgs.lib; {
description = "typy-cli - Minimalistic Monkeytype clone for the CLI";
homepage = "https://github.com/Pazl27/typy-cli";
license = licenses.mit;
};
};
apps.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/typy";
};
}
);
);
}