1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 04:57:44 +00:00

feat: update inputs

This commit is contained in:
Kevin Amado 2022-02-03 20:40:25 -05:00
parent 9229240c62
commit ac262a98d8
No known key found for this signature in database
GPG key ID: FFF341057F503148
2 changed files with 60 additions and 61 deletions

18
flake.lock generated
View file

@ -10,11 +10,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1643610217, "lastModified": 1643869431,
"narHash": "sha256-3cFZt9Eyz70s1CNYO3wJeUDgLUC9tC4s5hNpLtX3FQY=", "narHash": "sha256-M+khM8s4Kz70q1jCpNX+Cx/YH6cZnn32yCW4udZMCVk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "bd91b6fddf7fdf90ad9924339fcb40f008f57447", "rev": "2d64d0c1941b2b82d938e82790ea0e692889c23b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -56,11 +56,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1643381941, "lastModified": 1643472818,
"narHash": "sha256-pHTwvnN4tTsEKkWlXQ8JMY423epos8wUOhthpwJjtpc=", "narHash": "sha256-qzVPxKDUubYIxKRSuDl/JgzXWSmGvUVYny9SxFMfPJM=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5efc8ca954272c4376ac929f4c5ffefcc20551d5", "rev": "7f65e4abd5ecaad12d2d26e4380d1a7d8edafea7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -83,11 +83,11 @@
"rustAnalyzer": { "rustAnalyzer": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1643645003, "lastModified": 1643919078,
"narHash": "sha256-uz+MXBcGoIqzc6acGB7GjJQsTWKr341+fjjv+pQR8N8=", "narHash": "sha256-5TBwFN/KYMzTsarc1oNW4J2f0IraxqcRCamObbnFcng=",
"owner": "rust-analyzer", "owner": "rust-analyzer",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "4800c05a206eb156617b76fdb30af0b6c2c0fb26", "rev": "9597e55e9b933b82d190607f0fcf59654cdaccee",
"type": "github" "type": "github"
}, },
"original": { "original": {

103
flake.nix
View file

@ -13,57 +13,56 @@
treefmt.inputs.flake-utils.follows = "flakeUtils"; treefmt.inputs.flake-utils.follows = "flakeUtils";
treefmt.inputs.nixpkgs.follows = "nixpkgs"; treefmt.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs = inputs: inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] (
inputs: inputs.flakeUtils.lib.eachSystem [ "x86_64-darwin" "x86_64-linux" ] ( system: let
system: let nixpkgs = import inputs.nixpkgs { inherit system; };
nixpkgs = import inputs.nixpkgs { inherit system; }; cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); treefmt = inputs.treefmt.defaultPackage.${system};
treefmt = inputs.treefmt.defaultPackage.${system}; fenix = inputs.fenix.packages.${system};
fenix = inputs.fenix.packages.${system}; fenixPlatform = nixpkgs.makeRustPlatform { inherit (fenix.latest) cargo rustc; };
fenixPlatform = nixpkgs.makeRustPlatform { inherit (fenix.latest) cargo rustc; }; in
in {
{ checks = { defaultPackage = inputs.self.defaultPackage.${system}; };
checks = { defaultPackage = inputs.self.defaultPackage.${system}; }; defaultApp = {
defaultApp = { type = "app";
type = "app"; program = "${inputs.self.defaultPackage.${system}}/bin/alejandra";
program = "${inputs.self.defaultPackage.${system}}/bin/alejandra"; };
defaultPackage = fenixPlatform.buildRustPackage {
pname = cargoToml.package.name;
version =
let
commit = inputs.self.shortRev or "dirty";
date =
inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101";
in
"${builtins.substring 0 8 date}_${commit}";
src = inputs.self.sourceInfo;
cargoLock.lockFile = ./Cargo.lock;
meta = {
description = cargoToml.package.description;
homepage = "https://github.com/kamadorueda/alejandra";
license = nixpkgs.lib.licenses.unlicense;
maintainers = [ nixpkgs.lib.maintainers.kamadorueda ];
}; };
defaultPackage = fenixPlatform.buildRustPackage { };
pname = cargoToml.package.name; devShell = nixpkgs.mkShell {
version = name = "Alejandra";
let packages = [
commit = inputs.self.shortRev or "dirty"; fenix.rust-analyzer
date = fenix.latest.cargo
inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101"; fenix.latest.clippy
in fenix.latest.rust-src
"${builtins.substring 0 8 date}_${commit}"; fenix.latest.rustc
src = inputs.self.sourceInfo; fenix.latest.rustfmt
cargoLock.lockFile = ./Cargo.lock; nixpkgs.cargo-tarpaulin
meta = { nixpkgs.jq
description = cargoToml.package.description; nixpkgs.nodejs
homepage = "https://github.com/kamadorueda/alejandra"; nixpkgs.nodePackages.prettier
license = nixpkgs.lib.licenses.unlicense; nixpkgs.nodePackages.prettier-plugin-toml
maintainers = [ nixpkgs.lib.maintainers.kamadorueda ]; nixpkgs.shfmt
}; treefmt
}; ];
devShell = nixpkgs.mkShell { };
name = "Alejandra"; }
packages = [ );
fenix.rust-analyzer
fenix.latest.cargo
fenix.latest.clippy
fenix.latest.rust-src
fenix.latest.rustc
fenix.latest.rustfmt
nixpkgs.cargo-tarpaulin
nixpkgs.jq
nixpkgs.nodejs
nixpkgs.nodePackages.prettier
nixpkgs.nodePackages.prettier-plugin-toml
nixpkgs.shfmt
treefmt
];
};
}
);
} }