mirror of
https://github.com/nix-community/nurl.git
synced 2024-10-26 03:50:35 +03:00
fix ci
This commit is contained in:
parent
ebb431350c
commit
b3f6b0de79
62
flake.nix
62
flake.nix
@ -6,47 +6,47 @@
|
|||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
inherit (nixpkgs.lib)
|
inherit (nixpkgs.lib)
|
||||||
genAttrs importTOML licenses makeBinPath maintainers systems;
|
genAttrs importTOML licenses makeBinPath maintainers;
|
||||||
inherit (importTOML (self + "/Cargo.toml")) package;
|
inherit (importTOML (self + "/Cargo.toml")) package;
|
||||||
|
|
||||||
|
forEachSystem = genAttrs [
|
||||||
|
"aarch64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
formatter = genAttrs systems.flakeExposed
|
formatter = forEachSystem
|
||||||
(system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
(system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
||||||
|
|
||||||
packages = genAttrs
|
packages = forEachSystem (system:
|
||||||
[
|
let
|
||||||
"aarch64-darwin"
|
inherit (nixpkgs.legacyPackages.${system})
|
||||||
"aarch64-linux"
|
gitMinimal makeWrapper mercurial nix rustPlatform;
|
||||||
"x86_64-darwin"
|
in
|
||||||
"x86_64-linux"
|
{
|
||||||
]
|
default = rustPlatform.buildRustPackage {
|
||||||
(system:
|
pname = "nurl";
|
||||||
let
|
inherit (package) version;
|
||||||
inherit (nixpkgs.legacyPackages.${system})
|
|
||||||
gitMinimal makeWrapper mercurial nix rustPlatform;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
default = rustPlatform.buildRustPackage {
|
|
||||||
pname = "nurl";
|
|
||||||
inherit (package) version;
|
|
||||||
|
|
||||||
src = self;
|
src = self;
|
||||||
|
|
||||||
cargoLock.lockFile = self + "/Cargo.lock";
|
cargoLock.lockFile = self + "/Cargo.lock";
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/nurl \
|
wrapProgram $out/bin/nurl \
|
||||||
--prefix PATH : ${makeBinPath [ gitMinimal mercurial nix ]}
|
--prefix PATH : ${makeBinPath [ gitMinimal mercurial nix ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (package) description;
|
inherit (package) description;
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
maintainers = with maintainers; [ figsoda ];
|
maintainers = with maintainers; [ figsoda ];
|
||||||
};
|
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user