11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
16 owner = "bilelmoussaoui";
19 hash = "sha256-KoceqJCxb61EF29Fw9UU2LCHxDR0ExR3lnt85Nqg6tg=";
23 lockFile = ./Cargo.lock;
27 ln -s ${./Cargo.lock} Cargo.lock
30 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [ openssl ];
35 install -Dm644 portal/data/oo7-portal.portal $out/share/xdg-desktop-portal/portals/oo7.portal
36 install -Dm644 portal/data/oo7-portal.service $out/share/dbus-1/services/oo7-portal.service
37 substituteInPlace $out/share/dbus-1/services/oo7-portal.service \
38 --replace-fail "@bindir@" "$out/bin"
42 tests.testVersion = testers.testVersion { package = oo7; };
44 # TODO: re-enable this when upstream adds a Cargo.lock
45 # updateScript = nix-update-script { };
49 description = "James Bond went on a new mission as a Secret Service provider";
50 homepage = "https://github.com/bilelmoussaoui/oo7";
51 changelog = "https://github.com/bilelmoussaoui/oo7/releases/tag/${src.rev}";
52 license = licenses.mit;
53 maintainers = with maintainers; [
57 platforms = platforms.linux;
58 mainProgram = "oo7-cli";