nix: create package output and editor-friendly devshell
This commit is contained in:
parent
1edc497dde
commit
23ad546a39
1 changed files with 23 additions and 0 deletions
27
flake.nix
27
flake.nix
|
|
@ -47,7 +47,30 @@
|
|||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
dev = pkgs.mkShell {
|
||||
inputsFrom = [ self.devShells.${system}.default ];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
packages = forEachSystem (
|
||||
system: pkgs: {
|
||||
default = pkgs.jay.overrideAttrs (_: {
|
||||
pname = "wry";
|
||||
version = "unstable-${toString self.lastModified}";
|
||||
src = ./.;
|
||||
cargoDeps = pkgs.rustPlatform.importCargoLock {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue