Merge pull request #795 from Jayman2000/binlore-for-disko-commands

This commit is contained in:
Felix Uhl authored and GitHub committed 2024-09-24 07:45:17 +02:00
commit c61e50b63a
1 file changed
+10 -3
+10 -3
View File
@@ -1,6 +1,7 @@
{ stdenvNoCC, makeWrapper, lib, path, nix, coreutils, nixos-install-tools }: { stdenvNoCC, makeWrapper, lib, path, nix, coreutils, nixos-install-tools, binlore }:
stdenvNoCC.mkDerivation (finalAttrs: { let
self = stdenvNoCC.mkDerivation (finalAttrs: {
name = "disko"; name = "disko";
src = ./.; src = ./.;
nativeBuildInputs = [ nativeBuildInputs = [
@@ -18,6 +19,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
--prefix NIX_PATH : "nixpkgs=${path}" --prefix NIX_PATH : "nixpkgs=${path}"
done done
''; '';
# Otherwise resholve thinks that disko and disko-install might be able to execute their arguments
passthru.binlore.out = binlore.synthesize self ''
execer cannot bin/.disko-wrapped
execer cannot bin/.disko-install-wrapped
'';
meta = with lib; { meta = with lib; {
description = "Format disks with nix-config"; description = "Format disks with nix-config";
homepage = "https://github.com/nix-community/disko"; homepage = "https://github.com/nix-community/disko";
@@ -26,4 +32,5 @@ stdenvNoCC.mkDerivation (finalAttrs: {
platforms = platforms.linux; platforms = platforms.linux;
mainProgram = finalAttrs.name; mainProgram = finalAttrs.name;
}; };
}) });
in self