mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
nixos-anywhere: set mainProgram and use finalAttrs
This commit is contained in:
parent
e2621535e5
commit
f6830438cd
@ -26,13 +26,13 @@ let
|
||||
gnused # needed by ssh-copy-id
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "nixos-anywhere";
|
||||
version = "1.0.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "numtide";
|
||||
repo = "nixos-anywhere";
|
||||
rev = version;
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-zM+N7+XDR34DuTrVLJd7Ggq1JPlURddsqNOjXY/rcQM=";
|
||||
};
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
@ -48,8 +48,9 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Install nixos everywhere via ssh";
|
||||
homepage = "https://github.com/numtide/nixos-anywhere";
|
||||
mainProgram = "nixos-anywhere";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.mic92 maintainers.lassulus maintainers.phaer ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user