mirror of
https://github.com/kaesaecracker/servicepoint-simulator.git
synced 2025-01-18 10:30: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 =
|
outputs =
|
||||||
inputs@{ self, nixpkgs }:
|
inputs@{ self, nixpkgs }:
|
||||||
rec {
|
let
|
||||||
packages.hello = nixpkgs.rustPlatform.buildRustPackage rec {
|
servicepoint-simulator = nixpkgs.legacyPackages.x86_64-linux.rustPlatform.buildRustPackage rec {
|
||||||
pname = "servicepoint-simulator";
|
pname = "servicepoint-simulator";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
|
|
||||||
src = [ ]; # TODO: src, Cargo.toml etc
|
src = ./.; # TODO: src, Cargo.toml etc
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|
||||||
];
|
];
|
||||||
nativeBuildInputs = with nixpkgs.legacyPackages.x86_64-linux; [ pkgconfig ];
|
nativeBuildInputs = with nixpkgs.legacyPackages.x86_64-linux; [ pkg-config ];
|
||||||
cargoSha256 = "sha256-0hfmV4mbr3l86m0X7EMYTOu/b+BjueVEbbyQz0KgOFY=";
|
#cargoSha256 = "sha256-0hfmV4mbr3l86m0X7EMYTOu/b+BjueVEbbyQz0KgOFY=";
|
||||||
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
|
|
||||||
meta = with nixpkgs.stdenv.lib; {
|
meta = with nixpkgs.stdenv.lib; {
|
||||||
homepage = "";
|
homepage = "";
|
||||||
|
@ -26,10 +27,12 @@
|
||||||
#license = licenses.gplv3;
|
#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; };
|
devShells.x86_64-linux.default = import ./shell.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue