mirror of
https://github.com/kaesaecracker/servicepoint-simulator.git
synced 2025-01-18 02:20:14 +01:00
wip nix flake
This commit is contained in:
parent
373b823285
commit
4e4febb281
19
flake.nix
19
flake.nix
|
@ -7,18 +7,19 @@
|
|||
|
||||
outputs =
|
||||
inputs@{ self, nixpkgs }:
|
||||
rec {
|
||||
packages.hello = nixpkgs.rustPlatform.buildRustPackage rec {
|
||||
let
|
||||
servicepoint-simulator = nixpkgs.legacyPackages.x86_64-linux.rustPlatform.buildRustPackage rec {
|
||||
pname = "servicepoint-simulator";
|
||||
version = "0.0.1";
|
||||
|
||||
src = [ ]; # TODO: src, Cargo.toml etc
|
||||
src = ./.; # TODO: src, Cargo.toml etc
|
||||
|
||||
buildInputs = [
|
||||
|
||||
];
|
||||
nativeBuildInputs = with nixpkgs.legacyPackages.x86_64-linux; [ pkgconfig ];
|
||||
cargoSha256 = "sha256-0hfmV4mbr3l86m0X7EMYTOu/b+BjueVEbbyQz0KgOFY=";
|
||||
nativeBuildInputs = with nixpkgs.legacyPackages.x86_64-linux; [ pkg-config ];
|
||||
#cargoSha256 = "sha256-0hfmV4mbr3l86m0X7EMYTOu/b+BjueVEbbyQz0KgOFY=";
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
meta = with nixpkgs.stdenv.lib; {
|
||||
homepage = "";
|
||||
|
@ -26,10 +27,12 @@
|
|||
#license = licenses.gplv3;
|
||||
};
|
||||
|
||||
legacyPackages = packages;
|
||||
|
||||
defaultPackage = packages.hello;
|
||||
};
|
||||
in
|
||||
rec {
|
||||
packages.x86_64-linux.default = servicepoint-simulator;
|
||||
|
||||
legacyPackages = packages;
|
||||
|
||||
devShells.x86_64-linux.default = import ./shell.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue