nix-dotfiles/pkgs/edit/flake.nix

40 lines
1 KiB
Nix
Raw Normal View History

2025-05-23 12:19:11 -04:00
{
description = "Flake containing Edit";
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, fenix, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
defaultPackage =
let rustPlatform = (pkgs.makeRustPlatform {
inherit (fenix.packages.${system}.minimal) cargo rustc;
});
in rustPlatform.buildRustPackage {
pname = "edit";
version = "1.0.0";
src = ./.;
cargoHash = "sha256-DEzjfrXSmum/GJdYanaRDKxG4+eNPWf5echLhStxcIg=";
meta = {
description = "We all edit.";
homepage = "https://github.com/microsoft/edit";
license = pkgs.lib.licenses.mit;
maintainers = [ ];
};
};
}
);
}